- Timestamp:
- 07/09/2019 05:44:42 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-wp-filesystem-direct.php
r45424 r45611 96 96 */ 97 97 public function cwd() { 98 return @getcwd();98 return getcwd(); 99 99 } 100 100 … … 127 127 } 128 128 if ( ! $recursive ) { 129 return @chgrp( $file, $group );129 return chgrp( $file, $group ); 130 130 } 131 131 if ( ! $this->is_dir( $file ) ) { 132 return @chgrp( $file, $group );132 return chgrp( $file, $group ); 133 133 } 134 134 // Is a directory, and we want recursive … … 166 166 167 167 if ( ! $recursive || ! $this->is_dir( $file ) ) { 168 return @chmod( $file, $mode );168 return chmod( $file, $mode ); 169 169 } 170 170 // Is a directory, and we want recursive … … 194 194 } 195 195 if ( ! $recursive ) { 196 return @chown( $file, $owner );196 return chown( $file, $owner ); 197 197 } 198 198 if ( ! $this->is_dir( $file ) ) { 199 return @chown( $file, $owner );199 return chown( $file, $owner ); 200 200 } 201 201 // Is a directory, and we want recursive … … 477 477 $atime = time(); 478 478 } 479 return @touch( $file, $time, $atime );479 return touch( $file, $time, $atime ); 480 480 } 481 481 … … 565 565 } 566 566 567 if ( ! $this->is_dir( $path ) ) {568 return false; 569 } 570 571 $dir = @dir( $path );567 if ( ! $this->is_dir( $path ) || ! $this->is_readable( $dir ) ) { 568 return false; 569 } 570 571 $dir = dir( $path ); 572 572 if ( ! $dir ) { 573 573 return false;
Note: See TracChangeset
for help on using the changeset viewer.