- Timestamp:
- 05/16/2020 06:40:52 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-wp-filesystem-direct.php
r47219 r47808 334 334 $file = str_replace( '\\', '/', $file ); // For Win32, occasional problems deleting files otherwise. 335 335 336 if ( 'f' == $type || $this->is_file( $file ) ) {336 if ( 'f' === $type || $this->is_file( $file ) ) { 337 337 return @unlink( $file ); 338 338 } … … 581 581 $struc['name'] = $entry; 582 582 583 if ( '.' == $struc['name'] || '..'== $struc['name'] ) {583 if ( '.' === $struc['name'] || '..' === $struc['name'] ) { 584 584 continue; 585 585 } 586 586 587 if ( ! $include_hidden && '.' == $struc['name'][0] ) {587 if ( ! $include_hidden && '.' === $struc['name'][0] ) { 588 588 continue; 589 589 } … … 604 604 $struc['type'] = $this->is_dir( $path . '/' . $entry ) ? 'd' : 'f'; 605 605 606 if ( 'd' == $struc['type'] ) {606 if ( 'd' === $struc['type'] ) { 607 607 if ( $recursive ) { 608 608 $struc['files'] = $this->dirlist( $path . '/' . $struc['name'], $include_hidden, $recursive );
Note: See TracChangeset
for help on using the changeset viewer.