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.

git-svn-id: https://develop.svn.wordpress.org/trunk@37970 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Pascal Birchler 2016-07-05 15:08:46 +00:00
parent d61706e07e
commit 431c469497
1 changed files with 2 additions and 0 deletions

View File

@ -886,6 +886,8 @@
wp.a11y.speak( wp.updates.l10n.updatingMsg, 'polite' );
$notice.text( wp.updates.l10n.updating );
$document.trigger( 'wp-theme-updating' );
return wp.updates.ajax( 'update-theme', args );
};