[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 19:38:17 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 nacin):
Regardless of justification for performance reasons, you've yet to justify
it for functional reasons.
There would be three functions.php files in this case -- grandchild,
child, and parent.
Core, presumably, would believe that the grandchild is STYLESHEETPATH, and
the child is TEMPLATEPATH. You've then hooked in and did final checks for
parent templates in the various hierarchy trees, if I had to guess.
At that point, your grandchild theme should know it needs to include the
grandparent functions.php. No extra juggling required.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/17805#comment:6>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list