WordPress.org

Make WordPress Core

Ticket #20718: 20718.patch

File 20718.patch, 625 bytes (added by SergeyBiryukov, 2 years ago)
  • wp-admin/theme-editor.php

     
    179179                if ( 'style.css' == $filename ) 
    180180                        echo "\t</ul>\n\t<h3>" . _x( 'Styles', 'Theme stylesheets in theme editor' ) . "</h3>\n\t<ul>\n"; 
    181181 
    182                 $file_description = get_file_description( $filename ); 
     182                $file_description = get_file_description( $absolute_filename ); 
    183183                if ( $file_description != basename( $filename ) ) 
    184184                        $file_description .= '<br /><span class="nonessential">(' . $filename . ')</span>'; 
    185185