From d72005f6d0d2ff723e6f4a8fde2cd551f3f2e65b Mon Sep 17 00:00:00 2001 From: Dion Hulse Date: Mon, 15 Jun 2015 02:47:19 +0000 Subject: [PATCH] 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 --- src/wp-admin/js/updates.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-admin/js/updates.js b/src/wp-admin/js/updates.js index 6574a3cc84..ddbfc097d7 100644 --- a/src/wp-admin/js/updates.js +++ b/src/wp-admin/js/updates.js @@ -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; }