WordPress.org

Make WordPress Core

Changeset 35371


Ignore:
Timestamp:
10/23/2015 07:34:02 AM (5 years ago)
Author:
dd32
Message:

Updates: Add a generic failure case to the ajax update endpoint for when the WP_Error value hasn't been found.

See #34403

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/ajax-actions.php

    r35317 r35371  
    30993099         */
    31003100        if ( $plugin_update_data === true ) {
     3101            $status['error'] = __( 'Plugin update failed.' );
    31013102            wp_send_json_error( $status );
    31023103        }
     
    31253126        wp_send_json_error( $status );
    31263127
     3128    } else {
     3129        // An unhandled error occured
     3130        $status['error'] = __( 'Plugin update failed.' );
     3131        wp_send_json_error( $status );
    31273132    }
    31283133}
Note: See TracChangeset for help on using the changeset viewer.