[wp-trac] [WordPress Trac] #15086: get_template_part() should let you specify a directory

WordPress Trac wp-trac at lists.automattic.com
Tue Jul 26 20:45:35 UTC 2011


#15086: get_template_part() should let you specify a directory
------------------------------------+-----------------------------
 Reporter:  aaroncampbell           |       Owner:
     Type:  enhancement             |      Status:  new
 Priority:  normal                  |   Milestone:  Future Release
Component:  Themes                  |     Version:  3.0
 Severity:  normal                  |  Resolution:
 Keywords:  dev-feedback has-patch  |
------------------------------------+-----------------------------
Changes (by scribu):

 * keywords:  dev-feedback has-patch 3.2-early => dev-feedback has-patch


Comment:

 Wouldn't it be better to use basename() and dirname() instead of the
 substr() trickery?

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


More information about the wp-trac mailing list