#34828 closed enhancement (duplicate)
Theme editor displays all index.php files with "Main index template" title
| Reported by: | Elvin.Haci | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Themes | Version: | 4.3.1 |
| Severity: | normal | Keywords: | |
| Cc: | Focuses: |
Description
And it is wrong. Theme can have several index.php files in subfolders. In such cases it looks like such:

If 60th line of wp-admin/includes/file.php to replace with this, i think the problem will be solved.
<?php if ( isset( $wp_file_descriptions[basename( $file )] ) and dirname($file)==get_template_directory() ) {
Change History (2)
#1
follow-up:
↓ 2
@
11 years ago
- Component General → Themes
- Milestone Awaiting Review
- Resolution → duplicate
- Status new → closed
#2
in reply to: ↑ 1
@
11 years ago
Hi Sergey. Thank you.
First i created this request in Github 1 year ago (which later was closed by you : https://github.com/WordPress/WordPress/pull/114 ), then they said that i should do the same in Core Trac page. Only today i remembered it and re-requested it here. :)
Replying to SergeyBiryukov:
Hi @Elvin.Haci, welcome to Trac!
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Hi @Elvin.Haci, welcome to Trac!
This is fixed in 4.4, see #27201 and [34658].