mirror of
git://develop.git.wordpress.org/
synced 2025-02-12 10:50:25 +01:00
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:
parent
d61706e07e
commit
431c469497
@ -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 );
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user