Opened 3 years ago
Closed 3 years ago
#12635 closed defect (bug) (fixed)
template-loader does not check for child theme's index.php
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Priority: | normal | Milestone: | 3.0 |
| Component: | Template | Version: | 3.0 |
| Severity: | normal | Keywords: | |
| Cc: |
Description
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:
- Make a child theme of twentyten with a blank index.php
- Delete twentyten's archive.php
- Navigate to an archive page
Attachments (2)
Change History (5)
koopersmith — 3 years ago
- Milestone changed from Unassigned to 3.0
- Owner set to nacin
- Status changed from new to reviewing
Note: See
TracTickets for help on using
tickets.

Interesting thought. Should probably introduce get_index_template() which returns get_query_template('index').