[wp-trac] [WordPress Trac] #12635: template-loader does not check for child theme's index.php
WordPress Trac
wp-trac at lists.automattic.com
Thu Mar 18 16:21:35 UTC 2010
#12635: template-loader does not check for child theme's index.php
--------------------------+-------------------------------------------------
Reporter: koopersmith | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Unassigned
Component: Template | Version: 3.0
Severity: normal | Keywords:
--------------------------+-------------------------------------------------
When template-loader reaches the last case in the if statement, it checks
for only the parent theme's index.php. Template-loader should first check
for the child's index.php, then the parent's index.php. It should use
locate_template, which will check for both the parent and the child and
behave accordingly.
To replicate the bug, make a parent and child theme each with only
index.php. In no instances should the parent's index.php be shown, but on
archive pages (and others) it will appear.
For easier bug replication:[[BR]]
1. Make a child theme of twentyten with a blank index.php[[BR]]
2. Delete twentyten's archive.php[[BR]]
3. Navigate to an archive page
--
Ticket URL: <http://core.trac.wordpress.org/ticket/12635>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list