WordPress.org

Make WordPress Core

Opened 21 months ago

Closed 21 months ago

Last modified 21 months ago

#34828 closed enhancement (duplicate)

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

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

Description

And it is wrong. Theme can have several index.php files in subfolders. In such cases it looks like such:
https://dl.dropboxusercontent.com/u/22319935/github%20commits/wordpress/1/before.png
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: @SergeyBiryukov
21 months 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
21 months 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!

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

Note: See TracTickets for help on using tickets.