- Timestamp:
- 05/16/2020 06:40:52 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-wp-filesystem-ftpsockets.php
r47219 r47808 384 384 return false; 385 385 } 386 if ( 'f' == $type || $this->is_file( $file ) ) {386 if ( 'f' === $type || $this->is_file( $file ) ) { 387 387 return $this->ftp->delete( $file ); 388 388 } … … 616 616 foreach ( $list as $struc ) { 617 617 618 if ( '.' == $struc['name'] || '..'== $struc['name'] ) {618 if ( '.' === $struc['name'] || '..' === $struc['name'] ) { 619 619 continue; 620 620 } 621 621 622 if ( ! $include_hidden && '.' == $struc['name'][0] ) {622 if ( ! $include_hidden && '.' === $struc['name'][0] ) { 623 623 continue; 624 624 } … … 628 628 } 629 629 630 if ( 'd' == $struc['type'] ) {630 if ( 'd' === $struc['type'] ) { 631 631 if ( $recursive ) { 632 632 $struc['files'] = $this->dirlist( $path . '/' . $struc['name'], $include_hidden, $recursive );
Note: See TracChangeset
for help on using the changeset viewer.