- 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-ftpext.php
r47219 r47808 70 70 71 71 $this->options['ssl'] = false; 72 if ( isset( $opt['connection_type'] ) && 'ftps' == $opt['connection_type'] ) {72 if ( isset( $opt['connection_type'] ) && 'ftps' === $opt['connection_type'] ) { 73 73 $this->options['ssl'] = true; 74 74 } … … 374 374 return false; 375 375 } 376 if ( 'f' == $type || $this->is_file( $file ) ) {376 if ( 'f' === $type || $this->is_file( $file ) ) { 377 377 return ftp_delete( $this->link, $file ); 378 378 } … … 696 696 } 697 697 698 if ( '.' == $entry['name'] || '..'== $entry['name'] ) {698 if ( '.' === $entry['name'] || '..' === $entry['name'] ) { 699 699 continue; 700 700 } 701 701 702 if ( ! $include_hidden && '.' == $entry['name'][0] ) {702 if ( ! $include_hidden && '.' === $entry['name'][0] ) { 703 703 continue; 704 704 } … … 713 713 $ret = array(); 714 714 foreach ( (array) $dirlist as $struc ) { 715 if ( 'd' == $struc['type'] ) {715 if ( 'd' === $struc['type'] ) { 716 716 if ( $recursive ) { 717 717 $struc['files'] = $this->dirlist( $path . '/' . $struc['name'], $include_hidden, $recursive );
Note: See TracChangeset
for help on using the changeset viewer.