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

Thomas Scholz info at toscho.de
Wed Mar 24 19:14:35 UTC 2010


Andrew Nacin:

>> Wouldn't it work to create a child theme of the current theme that only
>> contains the files being edited?
>
> Unless of course it's a child theme itself.

I guess this can easily be detected. I’m not sure about “grand child”  
themes, but a sibling thme should be possible?

> One major idea for the project
> would be for child themes to be generated as part of the theme editing
> process to begin with, that way the initial theme remains unmodified.

So WP has to check if the initial theme is a child anyway.

$is_child = (TEMPLATEPATH != STYLESHEETPATH);

Thomas

-- 
http://toscho.de


More information about the wp-hackers mailing list