[wp-trac] [WordPress Trac] #14912: Introduce register_update_hook()
WordPress Trac
wp-trac at lists.automattic.com
Thu Oct 28 13:43:26 UTC 2010
#14912: Introduce register_update_hook()
-----------------------------+----------------------------------------------
Reporter: scribu | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Future Release
Component: Upgrade/Install | Version:
Severity: normal | Keywords: has-patch
-----------------------------+----------------------------------------------
Comment(by StephenCronin):
Replying to [comment:32 nacin]:
> It will work when a plugin is updated through FTP. It just won't fire
until the admin area is accessed. I consider that an extreme edge case at
that point. And FWIW, WordPress doesn't run the database upgrade for a new
version until the admin area is accessed, either, so it's consistent with
that.
hmm can't argue with it being consistent with the core db upgrade, and for
most plugin updates it won't be an issue, but there will occasionally be
plugin updates where something needs to be updated immediately. In those
cases, the plugin may behave inconsistently until the user accesses the
admin area (typically in my case that could be up to a week!).
It seems that the only bulletproof solution is for the plugins to handle
this themselves.
If that's the case, perhaps we should scrap this new function and just
educate plugin authors about handling it themselves.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/14912#comment:34>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list