[wp-trac] [WordPress Trac] #12754: register_uninstall_hook() doesn't allow multiple callbacks
WordPress Trac
wp-trac at lists.automattic.com
Mon Mar 29 09:46:31 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
--------------------------+-------------------------------------------------
Comment(by scribu):
I guess I'll have to keep using my trusty
[http://plugins.trac.wordpress.org/browser/scb-
framework/trunk/classes/Util.php?rev=220336#L51 hack].
> Two fixes: 1) use uninstall.php instead, or 2) we can make
uninstall_plugins hold an array of callbacks. We should encourage the
first (and do so in the inline docs and the Codex) and do the second.
Related to 1): Why don't we load the plugin before including uninstall.php
?
> The docs should demand it be a function callback. Maybe a deprecated arg
call to not like arrays.
Calling a static method like array('MyClass', 'method') shouldn't cause
problems.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/12754#comment:10>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list