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.

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


git-svn-id: http://core.svn.wordpress.org/trunk@25773 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Andrew Nacin 2013-10-22 04:37:09 +00:00
parent 040d18a69f
commit 64bd5aa564
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 );