[wp-hackers] WP Plugins --> was::RE: [wp-forums] questionable...
Dr. Mike Wendell
theapparatus at gmail.com
Sun Aug 6 16:55:53 GMT 2006
There's an idea for a plugin maybe. Go through your MySQl tables and
delete the tables (or at least note them) and the _options lines that
are are longer needed.
-drmike
On 8/6/06, Kent Roger <kent at hinux.hin.no> wrote:
> I think Mr. Christopher means that there should be one subroutine for simply "deactivating" the pluging without deleting something from the database or the filesystem (just removing it from the loop), and one subroutine for a "clean and sweep", which purges settings and data belonging to that plugin.
>
> Imho deleting the files from the filesystem could be somewhat cumbersome because of all the different system setups out there...
>
> The "clean and sweep"-button could be implemented in the plugins-page, in addition to the activate/deactivate buttons.
>
> Kent
>
>
> On Sun, 6 Aug 2006 02:22:00 -0400
> "Michael B" <miklb.online at gmail.com> wrote:
>
> > What if you deactivate a plugin, then want to reactivate it after an
> > upgrade, but keep all the settings the same? Wouldn't cleaning out the DB
> > on deactivation erase those settings. UTW comes to mind as having numerous
> > settings.
> >
> > ~miklb
> >
> > On 8/6/06, Christopher J. Hradil <chradil at comcast.net> wrote:
> > >
> > > 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
> > > >
> > >
> > > _______________________________________________
> > > wp-hackers mailing list
> > > wp-hackers at lists.automattic.com
> > > http://lists.automattic.com/mailman/listinfo/wp-hackers
> > >
> > _______________________________________________
> > wp-hackers mailing list
> > wp-hackers at lists.automattic.com
> > http://lists.automattic.com/mailman/listinfo/wp-hackers
> >
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
>
--
Blog: http://tdjc.be
Kim Possible: Remixed: http://kpremixed.tdjc.be
Get your own free hosted WordPress Blog today: http://daria.be
More information about the wp-hackers
mailing list