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 git-svn-id: https://develop.svn.wordpress.org/trunk@32776 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
7819ac5d16
commit
d72005f6d0
@ -250,7 +250,7 @@ window.wp = window.wp || {};
|
|||||||
wp.updates.updateError = function( response ) {
|
wp.updates.updateError = function( response ) {
|
||||||
var $message, name;
|
var $message, name;
|
||||||
wp.updates.updateDoneSuccessfully = false;
|
wp.updates.updateDoneSuccessfully = false;
|
||||||
if ( response.errorCode && response.errorCode == 'unable_to_connect_to_filesystem' ) {
|
if ( response.errorCode && response.errorCode == 'unable_to_connect_to_filesystem' && wp.updates.shouldRequestFilesystemCredentials ) {
|
||||||
wp.updates.credentialError( response, 'update-plugin' );
|
wp.updates.credentialError( response, 'update-plugin' );
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user