[wp-trac] Re: [WordPress Trac] #5625: Include a separate uninstall
for plugins
WordPress Trac
wp-trac at lists.automattic.com
Fri Jan 11 20:50:09 GMT 2008
#5625: Include a separate uninstall for plugins
-------------------------------+--------------------------------------------
Reporter: arickmann | Owner: anonymous
Type: enhancement | Status: new
Priority: normal | Milestone: 2.6
Component: Administration | Version:
Severity: normal | Resolution:
Keywords: plugin-management |
-------------------------------+--------------------------------------------
Comment (by arickmann):
I've added a new version, plus an example plugin that implements the
process.
This now does use a hook, registered when the plugin is activated.
The uninstall option is only offered if that hook has been registered. If
the plugin is in the process of being uninstalled then the plugin is
loaded, with the code being ringfenced by a function that checks to see if
it is active (is_plugin_active).
The ringfencing code is placed at the top of the plugin so only the
uninstall functions are exposed.
--
Ticket URL: <http://trac.wordpress.org/ticket/5625#comment:7>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list