[wp-trac] [WordPress Trac] #25659: Move upgrader_process_complete from update-core.php to Core_Upgrader
WordPress Trac
noreply at wordpress.org
Mon Oct 21 19:36:41 UTC 2013
#25659: Move upgrader_process_complete from update-core.php to Core_Upgrader
-----------------------------+-----------------
Reporter: nacin | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 3.7
Component: Upgrade/Install | Version:
Severity: normal | Keywords:
-----------------------------+-----------------
upgrader_process_complete was placed in admin/includes/update-core.php
because the subsequent hook, _core_updated_successfully, has a redirect
set up. However, that redirect only occurs when you are updating from <
3.4. Thus, we don't care about whether the upgrader_process_complete
fires, which we use for languages.
We can thus move it to Core_Upgrader, where it belongs, and for consistent
with other Upgrader classes. It also, after the move, needs $this passed
to it — again, for consistency with other Upgrader classes.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/25659>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list