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


Built from https://develop.svn.wordpress.org/trunk@32061


git-svn-id: http://core.svn.wordpress.org/trunk@32040 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Aaron Jorbin 2015-04-07 02:32:26 +00:00
parent 5f5a38e032
commit 1985d00886
3 changed files with 5 additions and 2 deletions

View File

@ -227,6 +227,8 @@ window.wp = window.wp || {};
wp.updates.updateDoneSuccessfully = true;
$(document).trigger( 'wp.plugin.update.success', response );
/*
* The lock can be released since the update was successful,
* and any other updates can commence.
@ -262,6 +264,7 @@ window.wp = window.wp || {};
$message.text( wp.updates.l10n.updateFailed );
wp.a11y.speak( wp.updates.l10n.updateFailed );
$(document).trigger( 'wp.plugin.update.error', response );
};
/**

File diff suppressed because one or more lines are too long

View File

@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '4.2-beta4-32060';
$wp_version = '4.2-beta4-32061';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.