[wp-trac] [WordPress Trac] #14912: Introduce register_upgrade_hook()
WordPress Trac
wp-trac at lists.automattic.com
Tue Sep 21 11:33:22 UTC 2010
#14912: Introduce register_upgrade_hook()
-----------------------------+----------------------------------------------
Reporter: scribu | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Future Release
Component: Upgrade/Install | Version:
Severity: normal | Keywords: needs-patch
-----------------------------+----------------------------------------------
Comment(by scribu):
For network plugins, you can use add_site_option() etc. to store a
separate array of version and then you would have to run the upgrade
procedure for each site. Similar to #14170
A more pressing problem is that in your current patch, you tie the version
update to the activation procedure, so we're back where we started.
Upgrades shouldn't be tied to activation at all.
The way I see it, the active version should be added and updated from
register_update_hook().
--
Ticket URL: <http://core.trac.wordpress.org/ticket/14912#comment:17>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list