[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 13:38:54 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:  3.4
Component:  Themes                  |     Version:  3.4
 Severity:  trivial                 |  Resolution:
 Keywords:  dev-feedback has-patch  |
------------------------------------+------------------

Comment (by nacin):

 I think get_file_description() should use
 wp_get_theme()->get_page_templates(). Would be nice, but for 3.4 though.

 get_file_description() could become a method in WP_Theme, which would make
 things a bit easier.

 Patch looks good.

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


More information about the wp-trac mailing list