Make WordPress Core

Changeset 33303


Ignore:
Timestamp:
07/17/2015 04:00:34 AM (8 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.

Merges [32776] to the 4.2 branch
See #32435

Location:
branches/4.2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/4.2

  • branches/4.2/src/wp-admin/js/updates.js

    r32267 r33303  
    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.