WordPress.org

Make WordPress Core

Changeset 37970


Ignore:
Timestamp:
07/05/2016 03:08:46 PM (3 years ago)
Author:
swissspidy
Message:

Update/Install: Trigger a JS event when updating a theme.

For plugins a 'wp-plugin-updating' event is triggered, for themes there's now the 'wp-theme-updating' equivalent.

Props DavidAnderson.
Fixes #37216.

File:
1 edited

Legend:

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

    r37969 r37970  
    887887        $notice.text( wp.updates.l10n.updating );
    888888
     889        $document.trigger( 'wp-theme-updating' );
     890
    889891        return wp.updates.ajax( 'update-theme', args );
    890892    };
Note: See TracChangeset for help on using the changeset viewer.