Make WordPress Core

Changeset 32776


Ignore:
Timestamp:
06/15/2015 02:47:19 AM (10 years ago)
Author:
dd32
Message:

Updates: When a connection failure occurs, and no credential form is present client side, allow it to fall through to the normal failure handlers.
See #32435

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/js/updates.js

    r32267 r32776  
    251251        var $message, name;
    252252        wp.updates.updateDoneSuccessfully = false;
    253         if ( response.errorCode && response.errorCode == 'unable_to_connect_to_filesystem' ) {
     253        if ( response.errorCode && response.errorCode == 'unable_to_connect_to_filesystem' && wp.updates.shouldRequestFilesystemCredentials ) {
    254254            wp.updates.credentialError( response, 'update-plugin' );
    255255            return;
Note: See TracChangeset for help on using the changeset viewer.