Changeset 52289 for trunk/src/wp-admin/includes/class-wp-upgrader.php
- Timestamp:
- 11/30/2021 07:10:31 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-wp-upgrader.php
r52284 r52289 629 629 630 630 // Move new version of item into place. 631 $result = move_dir( $source, $remote_destination );631 $result = move_dir( $source, $remote_destination, $remote_source ); 632 632 if ( is_wp_error( $result ) ) { 633 633 if ( $args['clear_working'] ) { … … 637 637 } 638 638 639 // Clear the working folder?639 // Clear the working directory? 640 640 if ( $args['clear_working'] ) { 641 641 $wp_filesystem->delete( $remote_source, true ); … … 1048 1048 1049 1049 // Move to the temp-backup directory. 1050 if ( ! $wp_filesystem->move( $src, $dest, true) ) {1050 if ( ! move_dir( $src, $dest ) ) { 1051 1051 return new WP_Error( 'fs_temp_backup_move', $this->strings['temp_backup_move_failed'] ); 1052 1052 } … … 1082 1082 1083 1083 // Move it. 1084 if ( ! $wp_filesystem->move( $src, $dest, true) ) {1084 if ( ! move_dir( $src, $dest ) ) { 1085 1085 return new WP_Error( 'fs_temp_backup_delete', $this->strings['temp_backup_restore_failed'] ); 1086 1086 }
Note: See TracChangeset
for help on using the changeset viewer.