[wp-trac] [WordPress Trac] #14912: Introduce register_upgrade_hook()

WordPress Trac wp-trac at lists.automattic.com
Tue Sep 21 00:39:56 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):

 > Eric's idea is impractical: fetching the version of plugins on all page
 loads involves parsing their headers. That remained quite slow last I
 checked.

 Not at all. Plugins that would call register_upgrade_hook() would have
 their current version stored in the DB, and then, only on each admin page
 load check that option, which would get autoloaded anyway.

 It would just be a standardization of what plugin authors would have to do
 anyway.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/14912#comment:9>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list