[wp-trac] Re: [WordPress Trac] #5625: Include a separate uninstall
for plugins
WordPress Trac
wp-trac at lists.automattic.com
Thu Jan 10 08:25:36 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: |
----------------------------+-----------------------------------------------
Comment (by DD32):
In my mind it shouldnt be a seperate file which is checked for, Some
plugins use a folder, Some are simply a single file plonked into the
plugins folder.
I think it should probably be something similar to this:
{{{
* Click uninstall
* Page loads and includes active plugins, if specified plugin is not
activated, include it anyway
* plugin uses register_uninstall_hook() to register an uninstall
proceedure for itself
* If hook has been registered for current plugin:
* plugins.php calls 'uninstall_plugin-{$plugin_name}'
* Redirect to main page "Plugin uninstalled"(Possibly at this stage the
files could be deleted if requested, That fits in with the auto-install of
plugins in another ticket)
Else:
* Redirect to main page "Plugin has not registered an uninstall method"
}}}
I'd suggest something similar to Gallery 2's plugin install/uninstall
method, I was pretty impressed by that.
--
Ticket URL: <http://trac.wordpress.org/ticket/5625#comment:1>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list