[wp-trac] [WordPress Trac] #14912: Introduce register_upgrade_hook()
WordPress Trac
wp-trac at lists.automattic.com
Tue Sep 21 04:28:42 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 ericmann):
Replying to [comment:15 scribu]:
> More observations on the patch:
>
> * the callback should receive the previous version as a parameter
> * there's no point in using add_action() / do_action() in the same
function
Great suggestions; I've incorporated them both. Though I'm still
wondering how best to apply this patch to multisite/network-wide plugins.
I want to keep things as consistent as possible, but without direct
experience in site-wide options, I'm not quite sure where to begin ...
--
Ticket URL: <http://core.trac.wordpress.org/ticket/14912#comment:16>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list