Move wp-plugin-update-success event to after lock is released

Fixes #31978
See #31819
Props DavidAnderson



git-svn-id: https://develop.svn.wordpress.org/trunk@32133 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Aaron Jorbin 2015-04-15 14:36:04 +00:00
parent 7b0dbe06fd
commit 686b4af44d
1 changed files with 3 additions and 2 deletions

View File

@ -228,13 +228,14 @@ window.wp = window.wp || {};
wp.updates.updateDoneSuccessfully = true; wp.updates.updateDoneSuccessfully = true;
$(document).trigger( 'wp-plugin-update-success', response );
/* /*
* The lock can be released since the update was successful, * The lock can be released since the update was successful,
* and any other updates can commence. * and any other updates can commence.
*/ */
wp.updates.updateLock = false; wp.updates.updateLock = false;
$(document).trigger( 'wp-plugin-update-success', response );
wp.updates.queueChecker(); wp.updates.queueChecker();
}; };