Show the template name instead of just the filename. Props arieputranto, SergeyBiryukov. fixes #20718

git-svn-id: https://develop.svn.wordpress.org/trunk@20844 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2012-05-22 15:25:35 +00:00
parent b90c032c96
commit 4500216283

View File

@ -179,7 +179,7 @@ if ( $allowed_files ) :
if ( 'style.css' == $filename )
echo "\t</ul>\n\t<h3>" . _x( 'Styles', 'Theme stylesheets in theme editor' ) . "</h3>\n\t<ul>\n";
$file_description = get_file_description( $filename );
$file_description = get_file_description( $absolute_filename );
if ( $file_description != basename( $filename ) )
$file_description .= '<br /><span class="nonessential">(' . $filename . ')</span>';