[wpmu-trac] [WordPress MU Trac] #1010: Activation hook bug in
sitewide plugins
WordPress MU Trac
wpmu-trac at lists.automattic.com
Thu Jun 25 23:06:06 GMT 2009
#1010: Activation hook bug in sitewide plugins
----------------------------+-----------------------------------------------
Reporter: apeatling | Owner: somebody
Type: defect | Status: new
Priority: high | Milestone: 2.8
Component: Administration | Version:
Severity: critical | Keywords: has-patch
----------------------------+-----------------------------------------------
When a user clicks the 'Activate Sitewide" link for a plugin, the
activate_[plugin] action fires, but the actual plugin file has not been
included so any functions attached to that action in the plugin can't run.
If the function activate_sitewide_plugin() is changed to first call
activate_plugin() - the plugin file is loaded and hooks are attached. It
will also then check the file for errors. There is a filter that will
force activate_plugin() to loop back to activate_sitewide_plugin() and
continue the sitewide activation procedure.
I've tested this and it works well.
--
Ticket URL: <http://trac.mu.wordpress.org/ticket/1010>
WordPress MU Trac <http://mu.wordpress.org/>
WordPress Multiuser
More information about the wpmu-trac
mailing list