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.
Built from https://develop.svn.wordpress.org/trunk@37970


git-svn-id: http://core.svn.wordpress.org/trunk@37911 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Pascal Birchler 2016-07-05 15:09:28 +00:00
parent 066360f569
commit 848318aeb1
3 changed files with 4 additions and 2 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 );
};

File diff suppressed because one or more lines are too long

View File

@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '4.6-beta1-37969';
$wp_version = '4.6-beta1-37970';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.