Changeset 37421
- Timestamp:
- 05/12/2016 12:39:49 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/file.php
r37232 r37421 644 644 $uncompressed_size += $info['size']; 645 645 646 if ( '/' == substr($info['name'], -1) ) // directory 647 $needed_dirs[] = $to . untrailingslashit($info['name']); 648 else 649 $needed_dirs[] = $to . untrailingslashit(dirname($info['name'])); 646 if ( '/' === substr( $info['name'], -1 ) ) { 647 // Directory. 648 $needed_dirs[] = $to . untrailingslashit( $info['name'] ); 649 } elseif ( '.' !== $dirname = dirname( $info['name'] ) ) { 650 // Path to a file. 651 $needed_dirs[] = $to . untrailingslashit( $dirname ); 652 } 650 653 } 651 654
Note: See TracChangeset
for help on using the changeset viewer.