mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-10-04 14:47:02 +00:00
Coding Standards: Use strict comparison in wp-admin/includes/class-wp-filesystem-*.php.
See #52627. git-svn-id: https://develop.svn.wordpress.org/trunk@50657 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -210,7 +210,7 @@ class WP_Filesystem_ftpsockets extends WP_Filesystem_Base {
|
||||
|
||||
$bytes_written = fwrite( $temphandle, $contents );
|
||||
|
||||
if ( false === $bytes_written || strlen( $contents ) != $bytes_written ) {
|
||||
if ( false === $bytes_written || strlen( $contents ) !== $bytes_written ) {
|
||||
fclose( $temphandle );
|
||||
unlink( $tempfile );
|
||||
|
||||
@@ -650,7 +650,7 @@ class WP_Filesystem_ftpsockets extends WP_Filesystem_Base {
|
||||
continue;
|
||||
}
|
||||
|
||||
if ( $limit_file && $struc['name'] != $limit_file ) {
|
||||
if ( $limit_file && $struc['name'] !== $limit_file ) {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user