Move upgrader_process_complete for core to its proper place in Core_Upgrader.

This means it will be firing as a JS redirect is taking place if the update is from pre-3.4. Acceptable.

props dd32.
fixes #25659.


git-svn-id: https://develop.svn.wordpress.org/trunk@25861 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin 2013-10-22 04:36:54 +00:00
parent 258e4afcb2
commit bce2656e6d
2 changed files with 2 additions and 3 deletions

View File

@ -1406,6 +1406,8 @@ class Core_Upgrader extends WP_Upgrader {
}
}
do_action( 'upgrader_process_complete', $this, array( 'action' => 'update', 'type' => 'core' ) );
return $result;
}

View File

@ -891,9 +891,6 @@ function update_core($from, $to) {
// Remove maintenance file, we're done.
$wp_filesystem->delete($maintenance_file);
// Has to be in here, rather than the Upgrader as the filter below will override and kill the process before themes get updated on major updates
do_action( 'upgrader_process_complete', null, array( 'action' => 'update', 'type' => 'core' ) );
// If we made it this far:
do_action( '_core_updated_successfully', $wp_version );