- Timestamp:
- 05/16/2020 06:40:52 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-wp-filesystem-ssh2.php
r47584 r47808 228 228 229 229 if ( $returnbool ) { 230 return ( false === $data ) ? false : '' != trim( $data );230 return ( false === $data ) ? false : '' !== trim( $data ); 231 231 } else { 232 232 return $data; … … 500 500 */ 501 501 public function delete( $file, $recursive = false, $type = false ) { 502 if ( 'f' == $type || $this->is_file( $file ) ) {502 if ( 'f' === $type || $this->is_file( $file ) ) { 503 503 return ssh2_sftp_unlink( $this->sftp_link, $file ); 504 504 } … … 726 726 $struc['name'] = $entry; 727 727 728 if ( '.' == $struc['name'] || '..'== $struc['name'] ) {728 if ( '.' === $struc['name'] || '..' === $struc['name'] ) { 729 729 continue; // Do not care about these folders. 730 730 } 731 731 732 if ( ! $include_hidden && '.' == $struc['name'][0] ) {732 if ( ! $include_hidden && '.' === $struc['name'][0] ) { 733 733 continue; 734 734 } … … 749 749 $struc['type'] = $this->is_dir( $path . '/' . $entry ) ? 'd' : 'f'; 750 750 751 if ( 'd' == $struc['type'] ) {751 if ( 'd' === $struc['type'] ) { 752 752 if ( $recursive ) { 753 753 $struc['files'] = $this->dirlist( $path . '/' . $struc['name'], $include_hidden, $recursive );
Note: See TracChangeset
for help on using the changeset viewer.