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
This commit is contained in:
Dion Hulse 2015-06-15 04:27:37 +00:00
parent a5ed63c86f
commit 672f394b57
1 changed files with 8 additions and 0 deletions

View File

@ -266,7 +266,15 @@ window.wp = window.wp || {};
$message.html( wp.updates.l10n.updateFailed.replace( '%s', response.error ) ); $message.html( wp.updates.l10n.updateFailed.replace( '%s', response.error ) );
wp.a11y.speak( wp.updates.l10n.updateFailed ); 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 ); $(document).trigger( 'wp-plugin-update-error', response );
wp.updates.queueChecker();
}; };
/** /**