mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 20:30:23 +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:
@@ -505,11 +505,11 @@ class WP_Filesystem_Direct extends WP_Filesystem_Base {
|
||||
* @return bool True on success, false on failure.
|
||||
*/
|
||||
public function touch( $file, $time = 0, $atime = 0 ) {
|
||||
if ( 0 == $time ) {
|
||||
if ( 0 === $time ) {
|
||||
$time = time();
|
||||
}
|
||||
|
||||
if ( 0 == $atime ) {
|
||||
if ( 0 === $atime ) {
|
||||
$atime = time();
|
||||
}
|
||||
|
||||
@@ -630,7 +630,7 @@ class WP_Filesystem_Direct 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