[wp-trac] [WordPress Trac] #17805: "Child of a child" Theme: Convert include(functions.php) to include_once().

WordPress Trac wp-trac at lists.automattic.com
Wed Jun 15 20:25:55 UTC 2011


#17805: "Child of a child" Theme: Convert include(functions.php) to include_once().
--------------------------+------------------------------
 Reporter:  5ubliminal    |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Themes        |     Version:  3.2
 Severity:  major         |  Resolution:
 Keywords:  has-patch     |
--------------------------+------------------------------

Comment (by 5ubliminal):

 STYLESHEETPATH is Parent or Child. TEMPLATEPATH is Root or Parent. So
 Parent/Child and Root/Parent combinations. But they include each other.
 Child includes Parent, Parent includes Root... and this is where it
 breaks. If Child went directly for Root, it will lose the Parent vital
 modifications, if it goes for Parent, the Parent has to load Root.

 But if I use the Parent theme, WordPress includes Root.

 Parent includes Root, WordPress includes Root when using Parent as theme.
 This is the breaking point.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/17805#comment:11>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list