[wp-trac] [WordPress Trac] #34828: Theme editor displays all index.php files with "Main index template" title
WordPress Trac
noreply at wordpress.org
Wed Dec 2 06:00:09 UTC 2015
#34828: Theme editor displays all index.php files with "Main index template" title
-------------------------+-----------------------------
Reporter: Elvin.Haci | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: 4.3.1
Severity: normal | Keywords:
Focuses: |
-------------------------+-----------------------------
And it is wrong. Theme can have several index.php files in subfolders. In
such cases it looks like such:
[[Image(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
<?php
if ( isset( $wp_file_descriptions[basename( $file )] ) and
dirname($file)==get_template_directory() ) {
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/34828>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list