From 6b6be351eff7894a9e64990799ddb14080e4c081 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Mon, 17 Aug 2020 00:55:28 +0000 Subject: [PATCH] Filesystem API: Use correct variable when closing the file handle in `WP_Filesystem_FTPext::get_contents()`. Props gothick@gothick.org.uk. Merges [48797] to the 5.5 branch. Fixes #51029. git-svn-id: https://develop.svn.wordpress.org/branches/5.5@48803 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/includes/class-wp-filesystem-ftpext.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-admin/includes/class-wp-filesystem-ftpext.php b/src/wp-admin/includes/class-wp-filesystem-ftpext.php index cddbd631a2..5958e7debf 100644 --- a/src/wp-admin/includes/class-wp-filesystem-ftpext.php +++ b/src/wp-admin/includes/class-wp-filesystem-ftpext.php @@ -156,7 +156,7 @@ class WP_Filesystem_FTPext extends WP_Filesystem_Base { $contents .= fread( $temphandle, 8 * KB_IN_BYTES ); } - fclose( $temphangle ); + fclose( $temphandle ); unlink( $tempfile ); return $contents;