[theme-reviewers] How do the theme updates work?
Rohit Tripathi
rohitink at live.com
Sat Oct 19 04:34:05 UTC 2013
Thanks Otto. I did look into the Theme_Upgrader class. You are right.
> From: otto at ottodestruct.com
> Date: Fri, 18 Oct 2013 21:53:57 -0500
> To: theme-reviewers at lists.wordpress.org
> Subject: Re: [theme-reviewers] How do the theme updates work?
>
> On Fri, Oct 18, 2013 at 9:02 PM, Edward Caissie
> <edward.caissie at gmail.com> wrote:
> > @Rohit - Writing to your original question (although typically Child-Themes
> > are the more correct answer), only the files included with the theme package
> > will be used with a theme update. This is important to keep in mind if you
> > remove a file from your theme as it will remain in any installation of your
> > theme prior to that change.
> >
> > This is also essentially how page templates can survive a theme update.
>
>
> I'm not 100% certain, but I'm pretty sure that's wrong.
>
> Updating a theme or a plugin deletes the existing theme or plugin
> first, by removing the whole directory. Nothing in the theme or plugin
> directory survives an update.
>
> You can check the code to be sure. It's the Theme_Upgrader class in
> class-wp-upgrader.php. The upgrade() function calls the run() function
> with the "clear_destination" flag set to true, which should mean that
> it deletes the theme directory before installing the new package.
>
> -Otto
> _______________________________________________
> theme-reviewers mailing list
> theme-reviewers at lists.wordpress.org
> http://lists.wordpress.org/mailman/listinfo/theme-reviewers
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.wordpress.org/pipermail/theme-reviewers/attachments/20131019/b5b3e8a1/attachment-0001.html>
More information about the theme-reviewers
mailing list