From d41ac059642c6a6bf076aaacd048f74ef306a9ae Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Sat, 15 Aug 2020 20:54:46 +0000 Subject: [PATCH] Filesystem API: Use correct variable when closing the file handle in `WP_Filesystem_FTPext::get_contents()`. Props gothick@gothick.org.uk. Fixes #51029. git-svn-id: https://develop.svn.wordpress.org/trunk@48797 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;