From 672f394b579907bc8514090dbd36d02fdb0903b4 Mon Sep 17 00:00:00 2001 From: Dion Hulse Date: Mon, 15 Jun 2015 04:27:37 +0000 Subject: [PATCH] Updates: When an update fails (and it's not during the credential form) allow further updates to continue, with the assumption that the error only affects a single plugin. Props magicroundabout. Fixes #32110 for trunk. git-svn-id: https://develop.svn.wordpress.org/trunk@32780 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/js/updates.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/wp-admin/js/updates.js b/src/wp-admin/js/updates.js index 0d7bf888bf..5bd0b7a7d9 100644 --- a/src/wp-admin/js/updates.js +++ b/src/wp-admin/js/updates.js @@ -266,7 +266,15 @@ window.wp = window.wp || {}; $message.html( wp.updates.l10n.updateFailed.replace( '%s', response.error ) ); wp.a11y.speak( wp.updates.l10n.updateFailed ); + /* + * The lock can be released since this failure was + * after the credentials form. + */ + wp.updates.updateLock = false; + $(document).trigger( 'wp-plugin-update-error', response ); + + wp.updates.queueChecker(); }; /**