WordPress.org

Make WordPress Core

Ticket #31819: 31819.diff

File 31819.diff, 640 bytes (added by jorbin, 5 years ago)
  • src/wp-admin/js/updates.js

     
    227227
    228228                wp.updates.updateDoneSuccessfully = true;
    229229
     230                $(document).trigger( 'wp.plugin.update.success', response );
     231
    230232                /*
    231233                 * The lock can be released since the update was successful,
    232234                 * and any other updates can commence.
     
    262264                $message.text( wp.updates.l10n.updateFailed );
    263265                wp.a11y.speak( wp.updates.l10n.updateFailed );
    264266
     267                $(document).trigger( 'wp.plugin.update.error', response );
    265268        };
    266269
    267270        /**