- Timestamp:
- 04/05/2021 10:36:17 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-wp-filesystem-ftpext.php
r49936 r50657 451 451 $result = @ftp_chdir( $this->link, trailingslashit( $path ) ); 452 452 453 if ( $result && $path == $this->cwd() || $this->cwd() != $cwd ) {453 if ( $result && $path === $this->cwd() || $this->cwd() !== $cwd ) { 454 454 @ftp_chdir( $this->link, $cwd ); 455 455 return true; … … 615 615 $b['hour'] = $lucifer[4]; 616 616 $b['minute'] = $lucifer[5]; 617 $b['time'] = mktime( $lucifer[4] + ( strcasecmp( $lucifer[6], 'PM' ) == 0 ? 12 : 0 ), $lucifer[5], 0, $lucifer[1], $lucifer[2], $lucifer[3] );617 $b['time'] = mktime( $lucifer[4] + ( strcasecmp( $lucifer[6], 'PM' ) === 0 ? 12 : 0 ), $lucifer[5], 0, $lucifer[1], $lucifer[2], $lucifer[3] ); 618 618 $b['am/pm'] = $lucifer[6]; 619 619 $b['name'] = $lucifer[8]; … … 648 648 $b['size'] = $lucifer[4]; 649 649 650 if ( 8 == $lcount ) {650 if ( 8 === $lcount ) { 651 651 sscanf( $lucifer[5], '%d-%d-%d', $b['year'], $b['month'], $b['day'] ); 652 652 sscanf( $lucifer[6], '%d:%d', $b['hour'], $b['minute'] ); … … 746 746 } 747 747 748 if ( $limit_file && $entry['name'] != $limit_file ) {748 if ( $limit_file && $entry['name'] !== $limit_file ) { 749 749 continue; 750 750 }
Note: See TracChangeset
for help on using the changeset viewer.