Make WordPress Core

Changeset 32061


Ignore:
Timestamp:
04/07/2015 02:31:43 AM (10 years ago)
Author:
jorbin
Message:

Trigger events upon the completion of a shiny update

Plugins need to be able to do actions when a shiny update completes. While we don't have complete javascript actions and filters, we do have jQuery events that we can fire to assist plugin authors.

See #31819

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/js/updates.js

    r32053 r32061  
    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,
     
    263265        wp.a11y.speak( wp.updates.l10n.updateFailed );
    264266
     267        $(document).trigger( 'wp.plugin.update.error', response );
    265268    };
    266269
Note: See TracChangeset for help on using the changeset viewer.