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

WordPress Trac wp-trac at lists.automattic.com
Wed Mar 2 14:21:14 UTC 2011


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

Comment (by aaroncampbell):

 The 004 patch is just 003 refreshed to work on the current trunk.  It
 gives us a `remove_dot_segments()` function in wp-includes/formatting.php
 and it allows for you to specify a third directory parameter for
 `get_template_part` while still supporting the directory being added as
 part of the first slug parameter (should be completely backwards
 compatible).

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


More information about the wp-trac mailing list