Make WordPress Core

Ticket #37531: 37531.4.diff

File 37531.4.diff, 545 bytes (added by obenland, 8 years ago)
  • src/wp-admin/includes/ajax-actions.php

     
    36013601                $status['debug'] = $upgrader->skin->get_upgrade_messages();
    36023602        }
    36033603
     3604        if ( is_wp_error( $upgrader->skin->result ) ) {
     3605                $result = $upgrader->skin->result;
     3606        }
     3607
    36043608        if ( is_wp_error( $result ) ) {
    36053609                $status['errorMessage'] = $result->get_error_message();
    36063610                wp_send_json_error( $status );