[wp-hackers] Child themes, theme revisions, and the theme editor

Mike Schinkel mikeschinkel at newclarity.net
Wed Mar 24 17:15:54 UTC 2010


On Mar 24, 2010, at 3:04 AM, Andrew Nacin wrote:
>> Can’t you reuse the theme preview? In an iframe you could load and navigate
>> the edited theme without breaking the real site.
> The theme preview simply tells the blog (via a few GET parameters and a
> permissions check) to use a different stylesheet and template directory.
> Previewing the active theme is no different than viewing the live site.

Ah, I didn't think of that.

> Being able to edit an inactive theme and previewing it seems sensible. To do
> this for the active theme, we'd need to keep a copy of the active theme for
> editing purposes, which gets synced but allows for previews beforehand.
> Seems potentially overkill, but it's a consideration, for sure.

Wouldn't it work to create a child theme of the current theme that only contains the files being edited?

-Mike


More information about the wp-hackers mailing list