Make WordPress Core

Ticket #31978: trigger-update-event-later.patch

File trigger-update-event-later.patch, 527 bytes (added by DavidAnderson, 8 years ago)

Move "update complete" trigger to after the queue has been unlocked

  • wp-admin/js/updates.js

    old new  
    228228
    229229                wp.updates.updateDoneSuccessfully = true;
    230230
    231                 $(document).trigger( 'wp-plugin-update-success', response );
    232 
    233231                /*
    234232                 * The lock can be released since the update was successful,
    235233                 * and any other updates can commence.
    236234                 */
    237235                wp.updates.updateLock = false;
     236
     237                $(document).trigger( 'wp-plugin-update-success', response );
     238               
    238239                wp.updates.queueChecker();
    239240        };