Changeset 45098
- Timestamp:
- 04/02/2019 01:33:47 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/file.php
r45062 r45098 1264 1264 $to = trailingslashit( $to ); 1265 1265 1266 // Determine any parent dir 's needed (of the upgrade directory)1267 if ( ! $wp_filesystem->is_dir( $to ) ) { // Only do parents if no children exist1266 // Determine any parent directories needed (of the upgrade directory). 1267 if ( ! $wp_filesystem->is_dir( $to ) ) { // Only do parents if no children exist. 1268 1268 $path = preg_split( '![/\\\]!', untrailingslashit( $to ) ); 1269 1269 for ( $i = count( $path ); $i >= 0; $i-- ) { … … 1280 1280 $needed_dirs[] = $dir; 1281 1281 } else { 1282 break; // A folder exists, therefor , we dont need the check the levels below this1282 break; // A folder exists, therefore we don't need to check the levels below this. 1283 1283 } 1284 1284 }
Note: See TracChangeset
for help on using the changeset viewer.