Changeset 47848 for trunk/src/wp-admin/includes/class-wp-upgrader.php
- Timestamp:
- 05/23/2020 11:36:36 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-wp-upgrader.php
r47808 r47848 499 499 500 500 // Locate which directory to copy to the new folder. This is based on the actual folder holding the files. 501 if ( 1 == count( $source_files ) && $wp_filesystem->is_dir( trailingslashit( $args['source'] ) . $source_files[0] . '/' ) ) {501 if ( 1 === count( $source_files ) && $wp_filesystem->is_dir( trailingslashit( $args['source'] ) . $source_files[0] . '/' ) ) { 502 502 // Only one folder? Then we want its contents. 503 503 $source = trailingslashit( $args['source'] ) . trailingslashit( $source_files[0] );
Note: See TracChangeset
for help on using the changeset viewer.