From 686b4af44da97b3d486a3ea3c167ae0d04b1d11b Mon Sep 17 00:00:00 2001 From: Aaron Jorbin Date: Wed, 15 Apr 2015 14:36:04 +0000 Subject: [PATCH] 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 --- src/wp-admin/js/updates.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/wp-admin/js/updates.js b/src/wp-admin/js/updates.js index d8df2d8743..be22386b24 100644 --- a/src/wp-admin/js/updates.js +++ b/src/wp-admin/js/updates.js @@ -228,13 +228,14 @@ window.wp = window.wp || {}; wp.updates.updateDoneSuccessfully = true; - $(document).trigger( 'wp-plugin-update-success', response ); - /* * The lock can be released since the update was successful, * and any other updates can commence. */ wp.updates.updateLock = false; + + $(document).trigger( 'wp-plugin-update-success', response ); + wp.updates.queueChecker(); };