WordPress.org

Make WordPress Core

Changeset 25752


Ignore:
Timestamp:
10/10/13 01:56:44 (4 years ago)
Author:
dd32
Message:

After a upgrade fails, and we successfully rollback to a previous version, Don't send the version we rolled back to to the API, just that it was successful. See [25750]. See #22704

File:
1 edited

Legend:

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

    r25750 r25752  
    17371737                $rollback_data = $core_update_result->get_error_data(); 
    17381738                $extra_update_stats['success'] = is_wp_error( $rollback_data['update'] ) ? $rollback_data['update']->get_error_code() : $rollback_data['update']; 
    1739                 $extra_update_stats['rollback'] = is_wp_error( $rollback_data['rollback'] ) ? $rollback_data['rollback']->get_error_code() : $rollback_data['rollback']; 
     1739                $extra_update_stats['rollback'] = is_wp_error( $rollback_data['rollback'] ) ? $rollback_data['rollback']->get_error_code() : true; // If it's not a WP_Error, the rollback was successful. 
    17401740            } 
    17411741            $extra_update_stats['fs_method'] = $GLOBALS['wp_filesystem']->method; 
Note: See TracChangeset for help on using the changeset viewer.