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

WordPress Trac wp-trac at lists.automattic.com
Tue Sep 21 01:41:51 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):

 I see. It's probably better to specify an explicit version anyway, since
 not every update will have a schema change.

 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

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

More information about the wp-trac mailing list