Upgrade/Install: Fix the format of the upgrader_process_complete
actions after [42343].
More info: https://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards/issues/1323 See #41057, #42505 git-svn-id: https://develop.svn.wordpress.org/trunk@42786 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
0a63e2ed96
commit
3e182c7f71
@ -189,12 +189,10 @@ class Core_Upgrader extends WP_Upgrader {
|
||||
}
|
||||
|
||||
/** This action is documented in wp-admin/includes/class-wp-upgrader.php */
|
||||
do_action(
|
||||
'upgrader_process_complete', $this, array(
|
||||
'action' => 'update',
|
||||
'type' => 'core',
|
||||
)
|
||||
);
|
||||
do_action( 'upgrader_process_complete', $this, array(
|
||||
'action' => 'update',
|
||||
'type' => 'core',
|
||||
) );
|
||||
|
||||
// Clear the current updates
|
||||
delete_site_transient( 'update_core' );
|
||||
|
@ -274,14 +274,12 @@ class Language_Pack_Upgrader extends WP_Upgrader {
|
||||
remove_action( 'upgrader_process_complete', 'wp_update_themes' );
|
||||
|
||||
/** This action is documented in wp-admin/includes/class-wp-upgrader.php */
|
||||
do_action(
|
||||
'upgrader_process_complete', $this, array(
|
||||
'action' => 'update',
|
||||
'type' => 'translation',
|
||||
'bulk' => true,
|
||||
'translations' => $language_updates_results,
|
||||
)
|
||||
);
|
||||
do_action( 'upgrader_process_complete', $this, array(
|
||||
'action' => 'update',
|
||||
'type' => 'translation',
|
||||
'bulk' => true,
|
||||
'translations' => $language_updates_results,
|
||||
) );
|
||||
|
||||
// Re-add upgrade hooks.
|
||||
add_action( 'upgrader_process_complete', array( 'Language_Pack_Upgrader', 'async_upgrade' ), 20 );
|
||||
|
@ -307,14 +307,12 @@ class Plugin_Upgrader extends WP_Upgrader {
|
||||
wp_clean_plugins_cache( $parsed_args['clear_update_cache'] );
|
||||
|
||||
/** This action is documented in wp-admin/includes/class-wp-upgrader.php */
|
||||
do_action(
|
||||
'upgrader_process_complete', $this, array(
|
||||
'action' => 'update',
|
||||
'type' => 'plugin',
|
||||
'bulk' => true,
|
||||
'plugins' => $plugins,
|
||||
)
|
||||
);
|
||||
do_action( 'upgrader_process_complete', $this, array(
|
||||
'action' => 'update',
|
||||
'type' => 'plugin',
|
||||
'bulk' => true,
|
||||
'plugins' => $plugins,
|
||||
) );
|
||||
|
||||
$this->skin->bulk_footer();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user