[wp-hackers] any way to clean after theme when it gets deleted?

Otto otto at ottodestruct.com
Fri Jul 30 15:59:06 UTC 2010


No, I'm with Davit on this one. We do need an uninstall.php file for
themes, just like we have for plugins. This would only get triggered
on theme deletion, not just on switching to another theme. Same as
with plugins.

-Otto



On Fri, Jul 30, 2010 at 8:25 AM, Ashish Saini
<ashishsainiashfame at gmail.com> wrote:
> You didn't get my point. I said you should provide an uninstaller function
> that wipes out data and it shouldn't be automated upon deactivation.
>
> I would hate a theme which will ask for options to be configured again when
> I just switch back to another theme and now I want the previous theme back.
>
> Thanks & Regards
> Ashish Saini aka Ashfame
> (Deserve Before You Desire)
> Homepage : http://www.ashfame.com | Blog : http://blog.ashfame.com | Twitter
> : http://twitter.com/ashfame
>
>
> On Fri, Jul 30, 2010 at 6:47 PM, Davit Barbakadze <jayarjo at gmail.com> wrote:
>
>> It's not about switching (activate/deactivate), but deleting. It would
>> be pretty logical to remove all the stuff that theme has created on
>> activation.
>>
>> On Fri, Jul 30, 2010 at 3:45 PM, Ashish Saini
>> <ashishsainiashfame at gmail.com> wrote:
>> > Hi Davit,
>> >
>> > I think a better option would be to provide uninstall function as leaving
>> > the options in the database makes sense as the user may switch back and
>> so
>> > it will save the pain of configuring it.
>> >
>> > Thanks & Regards
>> > Ashish Saini aka Ashfame
>> > (Deserve Before You Desire)
>> > Homepage : http://www.ashfame.com | Blog : http://blog.ashfame.com |
>> Twitter
>> > : http://twitter.com/ashfame
>> >
>> >
>> > On Fri, Jul 30, 2010 at 4:44 PM, <diana.j.wiadji at hotmail.com> wrote:
>> >
>> >> $
>> >> ------Original Message------
>> >> From: Davit Barbakadze
>> >> Sender: wp-hackers-bounces at lists.automattic.com
>> >> To: wp-hackers at lists.automattic.com
>> >> ReplyTo: wp-hackers at lists.automattic.com
>> >> Subject: [wp-hackers]  any way to clean after theme when it gets
>> deleted?
>> >> Sent: Jul 30, 2010 18:02
>> >>
>> >> I think everyone uses options and maybe even tables in their themes
>> >> nowadays. Is there any way coder can clean up after theme - delete
>> >> options, remove tables - when it get's uninstalled. Something similar
>> >> to what we have for plugins?
>> >>
>> >> --
>> >> Davit Barbakadze
>> >> _______________________________________________
>> >> wp-hackers mailing list
>> >> wp-hackers at lists.automattic.com
>> >> http://lists.automattic.com/mailman/listinfo/wp-hackers
>> >>
>> >>
>> >>
>> >> Sent from my BlackBerry® smartphone on 3
>> >> _______________________________________________
>> >> 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
>> >
>>
>>
>>
>> --
>> Davit Barbakadze
>> _______________________________________________
>> 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
>


More information about the wp-hackers mailing list