Make WordPress Core


Ignore:
Timestamp:
04/05/2021 10:36:17 AM (5 years ago)
Author:
SergeyBiryukov
Message:

Coding Standards: Use strict comparison in wp-admin/includes/class-wp-filesystem-*.php.

See #52627.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-filesystem-direct.php

    r49936 r50657  
    506506         */
    507507        public function touch( $file, $time = 0, $atime = 0 ) {
    508                 if ( 0 == $time ) {
     508                if ( 0 === $time ) {
    509509                        $time = time();
    510510                }
    511511
    512                 if ( 0 == $atime ) {
     512                if ( 0 === $atime ) {
    513513                        $atime = time();
    514514                }
     
    631631                        }
    632632
    633                         if ( $limit_file && $struc['name'] != $limit_file ) {
     633                        if ( $limit_file && $struc['name'] !== $limit_file ) {
    634634                                continue;
    635635                        }
Note: See TracChangeset for help on using the changeset viewer.