[wp-hackers] WP Plugins --> was::RE: [wp-forums] questionable...
Christopher J. Hradil
chradil at comcast.net
Sun Aug 6 06:17:26 GMT 2006
I'm not talking about deactivation, in terms of cleanup, but rather
"uninstall", currently to uninstall a plugin you can deactivate it, then
delete the plugin file[s]/directory, but there's no database cleanup. That
should be the responsibility of the plugin author via an "uninstall"
function. What's the point in keeping useless information in the database if
a plugin is removed ? the other 'function' which I mentioned was a
'deactivate_all_plugins' which would be used during something like a WP core
upgrade (and should likely be a wp core function, or a plugin on it's own)
that wouldn't need to (or shouldn't make any changes to the DB as more than
likely the plugins would be re-activated following an upgrade.
/**************************************
Christopher J. Hradil
chradil at comcast.net
http://www.hradil.us
**************************************/
> -----Original Message-----
> From: wp-hackers-bounces at lists.automattic.com
> [mailto:wp-hackers-bounces at lists.automattic.com] On Behalf Of
> David Chait
> Sent: Saturday, August 05, 2006 3:08 PM
> To: wp-hackers at lists.automattic.com
> Subject: Re: [wp-hackers] WP Plugins --> was::RE: [wp-forums]
> questionable...
>
> Sounds like there needs to be a differentiation between
> simple deactivation (still there, could turn it back on) and
> permanent removal/uninstall (no options left behind, no
> files..). I >don't< think that deactivation should cause
> ANYTHING to be removed from DB or FS... needs to be a
> different 'button', procedure, whatever.
>
> -d
>
> ----- Original Message -----
> From: "Rob Miller" <r at robm.me.uk>
> To: <wp-hackers at lists.automattic.com>
> Sent: Saturday, August 05, 2006 2:05 PM
> Subject: Re: [wp-hackers] WP Plugins --> was::RE: [wp-forums]
> questionable...
>
>
> | Robert Deaton wrote:
> | > On 8/5/06, Robin Adrianse <shorty114 at shorty114.net> wrote:
> | >> In WordPress? Most, if not all, of the user options are in the
> | >> database _options table. These don't get removed as far
> as I know
> | >> when you deactivate a plugin, so it's still there when you
> | >> reactivate it.
> | >>
> | >
> | > Unless the deactivation hooks clean up, as they possibly should,
> | > depending on the amont of data stored.
> | >
> | What use would a cleanup be then, if WordPress was just
> going to store
> | everything you delete from the database... in the database?
> |
>
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
>
More information about the wp-hackers
mailing list