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
This commit is contained in:
parent
dddddc47f4
commit
d41ac05964
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user