Make WordPress Core

Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#34828 closed enhancement (duplicate)

Theme editor displays all index.php files with "Main index template" title

Reported by: elvinhaci's profile Elvin.Haci Owned by:
Milestone: Priority: normal
Severity: normal Version: 4.3.1
Component: Themes Keywords:
Focuses: Cc:


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.

if ( isset( $wp_file_descriptions[basename( $file )] ) and dirname($file)==get_template_directory() ) {

Change History (2)

#1 follow-up: @SergeyBiryukov
8 years ago

  • Component changed from General to Themes
  • Milestone Awaiting Review deleted
  • Resolution set to duplicate
  • Status changed from new to closed

Hi @Elvin.Haci, welcome to Trac!

This is fixed in 4.4, see #27201 and [34658].

#2 in reply to: ↑ 1 @Elvin.Haci
8 years ago

Hi Sergey. Thank you.
First i created this request in Github 1 year ago (which later was closed by you : ), 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!

This is fixed in 4.4, see #27201 and [34658].

Note: See TracTickets for help on using tickets.