- Timestamp:
- 07/01/2019 12:50:14 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-wp-filesystem-base.php
r45226 r45583 225 225 return $folder; 226 226 } 227 if ( $return = $this->search_for_folder( $folder ) ) { 227 $return = $this->search_for_folder( $folder ); 228 if ( $return ) { 228 229 $this->cache[ $folder ] = $return; 229 230 } … … 285 286 // Only search for the remaining path tokens in the directory, not the full path again. 286 287 $newfolder = implode( '/', array_slice( $folder_parts, $index + 1 ) ); 287 if ( $ret = $this->search_for_folder( $newfolder, $newdir, $loop ) ) { 288 $ret = $this->search_for_folder( $newfolder, $newdir, $loop ); 289 if ( $ret ) { 288 290 return $ret; 289 291 } … … 399 401 400 402 for ( $i = 0, $c = count( $attarray ); $i < $c; $i++ ) { 401 if ( $key = array_search( $attarray[ $i ], $legal ) ) { 403 $key = array_search( $attarray[ $i ], $legal ); 404 if ( $key ) { 402 405 $realmode .= $legal[ $key ]; 403 406 }
Note: See TracChangeset
for help on using the changeset viewer.