[wp-trac] [WordPress Trac] #20718: Function get_file_description() Always Returns File Name Instead of Template Name

WordPress Trac wp-trac at lists.automattic.com
Mon May 21 10:25:42 UTC 2012


#20718: Function get_file_description() Always Returns File Name Instead of
Template Name
--------------------------------------+------------------------------
 Reporter:  arieputranto              |       Owner:
     Type:  defect (bug)              |      Status:  new
 Priority:  normal                    |   Milestone:  Awaiting Review
Component:  Administration            |     Version:  3.4
 Severity:  trivial                   |  Resolution:
 Keywords:  dev-feedback needs-patch  |
--------------------------------------+------------------------------

Comment (by arieputranto):

 Found better fix.
 Instead of fixing the file.php, it will be better to change the;

 File: wp-admin/theme-editor.php

 Line: 183

 Before:

 $file_description = get_file_description( $filename );

 After:

 $file_description = get_file_description( $theme->theme_root . '/' .
 $theme->stylesheet . '/' . $filename );

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/20718#comment:2>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list