Filesystem API: Use correct variable when closing the file handle in WP_Filesystem_FTPext::get_contents()
.
Props gothick@gothick.org.uk. Fixes #51029. Built from https://develop.svn.wordpress.org/trunk@48797 git-svn-id: http://core.svn.wordpress.org/trunk@48559 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
e1da1ae3e4
commit
a5edb2a8a1
@ -156,7 +156,7 @@ class WP_Filesystem_FTPext extends WP_Filesystem_Base {
|
|||||||
$contents .= fread( $temphandle, 8 * KB_IN_BYTES );
|
$contents .= fread( $temphandle, 8 * KB_IN_BYTES );
|
||||||
}
|
}
|
||||||
|
|
||||||
fclose( $temphangle );
|
fclose( $temphandle );
|
||||||
unlink( $tempfile );
|
unlink( $tempfile );
|
||||||
|
|
||||||
return $contents;
|
return $contents;
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '5.6-alpha-48796';
|
$wp_version = '5.6-alpha-48797';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
Loading…
Reference in New Issue
Block a user