Changeset 56174 for trunk/src/wp-admin/includes/class-wp-upgrader.php
- Timestamp:
- 07/09/2023 07:50:52 PM (21 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-wp-upgrader.php
r56117 r56174 564 564 return new WP_Error( 'incompatible_archive_empty', $this->strings['incompatible_archive'], $this->strings['no_files'] ); 565 565 } else { 566 // It's only a single file, the upgrader will use the folder name of this file as the destination folder. 567 // Folder name is based on zip filename. 566 /* 567 * It's only a single file, the upgrader will use the folder name of this file as the destination folder. 568 * Folder name is based on zip filename. 569 */ 568 570 $source = trailingslashit( $args['source'] ); 569 571 } … … 642 644 } 643 645 } elseif ( $args['abort_if_destination_exists'] && $wp_filesystem->exists( $remote_destination ) ) { 644 // If we're not clearing the destination folder and something exists there already, bail. 645 // But first check to see if there are actually any files in the folder. 646 /* 647 * If we're not clearing the destination folder and something exists there already, bail. 648 * But first check to see if there are actually any files in the folder. 649 */ 646 650 $_files = $wp_filesystem->dirlist( $remote_destination ); 647 651 if ( ! empty( $_files ) ) { … … 822 826 $download = $this->download_package( $options['package'], true, $options['hook_extra'] ); 823 827 824 // Allow for signature soft-fail. 825 // WARNING: This may be removed in the future. 828 /* 829 * Allow for signature soft-fail. 830 * WARNING: This may be removed in the future. 831 */ 826 832 if ( is_wp_error( $download ) && $download->get_error_data( 'softfail-filename' ) ) { 827 833
Note: See TracChangeset
for help on using the changeset viewer.