[wp-trac] [WordPress Trac] #12754: register_uninstall_hook() doesn't allow multiple callbacks

WordPress Trac wp-trac at lists.automattic.com
Mon Mar 29 05:24:34 UTC 2010


#12754: register_uninstall_hook() doesn't allow multiple callbacks
--------------------------+-------------------------------------------------
 Reporter:  scribu        |       Owner:  westi
     Type:  defect (bug)  |      Status:  new  
 Priority:  normal        |   Milestone:  3.0  
Component:  Plugins       |     Version:  3.0  
 Severity:  normal        |    Keywords:       
--------------------------+-------------------------------------------------

Comment(by nacin):

 Or rather, it would require a specific situation to make it work. 1)
 register_uninstall_hook() would need to be run in global scope. 2) The
 callback would need to be in the same file as the call to
 register_uninstall_hook().

 If you run register_uninstall_hook() only on activation (all that is
 needed, really), or keep the callback in another file, then this patch
 would not work.

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


More information about the wp-trac mailing list