Make WordPress Core

Changeset 54484


Ignore:
Timestamp:
10/11/2022 03:26:01 PM (2 years ago)
Author:
SergeyBiryukov
Message:

Upgrade/Install: Revert a temporary conditional for testing the Rollbacks feature project.

This will be readded in 6.2-alpha after a 6.1 branch is created.

Follow-up to [53578].

See #56057.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-upgrader.php

    r54133 r54484  
    595595
    596596        // Copy new version of item into place.
    597         if ( class_exists( 'Rollback_Update_Failure\WP_Upgrader' )
    598             && function_exists( '\Rollback_Update_Failure\move_dir' )
    599         ) {
    600             /*
    601              * If the {@link https://wordpress.org/plugins/rollback-update-failure/ Rollback Update Failure}
    602              * feature plugin is installed, use the move_dir() function from there for better performance.
    603              * Instead of copying a directory from one location to another, it uses the rename() PHP function
    604              * to speed up the process. If the renaming failed, it falls back to copy_dir().
    605              *
    606              * This condition aims to facilitate broader testing of the Rollbacks (temp backups) feature project.
    607              * It is temporary, until the plugin is merged into core.
    608              */
    609             $result = \Rollback_Update_Failure\move_dir( $source, $remote_destination );
    610         } else {
    611             $result = copy_dir( $source, $remote_destination );
    612         }
    613 
     597        $result = copy_dir( $source, $remote_destination );
    614598        if ( is_wp_error( $result ) ) {
    615599            if ( $args['clear_working'] ) {
Note: See TracChangeset for help on using the changeset viewer.