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 Built from https://develop.svn.wordpress.org/trunk@42786 git-svn-id: http://core.svn.wordpress.org/trunk@42616 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -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 );
|
||||
|
||||
Reference in New Issue
Block a user