From 38da35836a6e8161afca7d7e83941b9ba96d8d2b Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Mon, 17 Aug 2020 00:57:07 +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. Built from https://develop.svn.wordpress.org/branches/5.5@48803 git-svn-id: http://core.svn.wordpress.org/branches/5.5@48565 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/class-wp-filesystem-ftpext.php | 2 +- wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-admin/includes/class-wp-filesystem-ftpext.php b/wp-admin/includes/class-wp-filesystem-ftpext.php index cddbd631a2..5958e7debf 100644 --- a/wp-admin/includes/class-wp-filesystem-ftpext.php +++ b/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; diff --git a/wp-includes/version.php b/wp-includes/version.php index 33883ad286..17a442a0fc 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.5.1-alpha-48787'; +$wp_version = '5.5.1-alpha-48803'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.