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

Built from https://develop.svn.wordpress.org/branches/4.2@33303


git-svn-id: http://core.svn.wordpress.org/branches/4.2@33275 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Dion Hulse 2015-07-17 04:01:27 +00:00
parent b6058e2231
commit 3f40fe30a8
2 changed files with 2 additions and 2 deletions

View File

@ -250,7 +250,7 @@ window.wp = window.wp || {};
wp.updates.updateError = function( response ) {
var $message, name;
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' );
return;
}

File diff suppressed because one or more lines are too long