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

WordPress Trac wp-trac at lists.automattic.com
Mon Mar 29 04:49:04 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:  has-patch
--------------------------+-------------------------------------------------
 Currently, if you call register_uninstall_hook() in the same plugin, with
 two different callbacks, only the second one will be called.

 This is because the callbacks are stored in an associative array:

 {{{$plugin => $callback}}}

 The only information that actually needs to be stored is the list of
 uninstallable plugins. The callback(s) can be added at runtime, like it's
 done for register_deactivation_hook().

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


More information about the wp-trac mailing list