[wp-trac] [WordPress Trac] #2928: broken plugins are still active
after activation errors
WordPress Trac
wp-trac at lists.automattic.com
Fri Jul 7 18:47:29 GMT 2006
#2928: broken plugins are still active after activation errors
-----------------------------+----------------------------------------------
Reporter: ryanscheuermann | Owner: anonymous
Type: defect | Status: new
Priority: normal | Milestone:
Component: Administration | Version:
Severity: normal | Keywords: plugins
-----------------------------+----------------------------------------------
In plugins.php, the activate hook is called after you update the plugin as
an "active" plugin, but if the activate method throws an error, the plugin
is still "active". To correct the error, you have to deactivate it,
fix/upgrade the plugin, and then reactivate. A broken plugin shouldn't
remain active.
Suggested solution: call the activate hook before updating the active
plugins, and if there is an error, the plugin can die with an error
message before it's officially activated.
--
Ticket URL: <http://trac.wordpress.org/ticket/2928>
WordPress Trac <http://wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list