[wp-trac] [WordPress Trac] #21676: Pass a variable to get_template_part()

WordPress Trac wp-trac at lists.automattic.com
Fri Sep 14 18:11:50 UTC 2012


#21676: Pass a variable to get_template_part()
-------------------------------------+--------------------
 Reporter:  sc0ttkclark              |       Owner:
     Type:  enhancement              |      Status:  new
 Priority:  normal                   |   Milestone:  3.5
Component:  Template                 |     Version:  3.4.1
 Severity:  normal                   |  Resolution:
 Keywords:  has-patch needs-testing  |
-------------------------------------+--------------------
Changes (by scribu):

 * keywords:  has-patch dev-feedback => has-patch needs-testing
 * milestone:  Awaiting Review => 3.5


Comment:

 For anyone else confused by that questions, it was in reference to this:

 http://core.trac.wordpress.org/ticket/21673#comment:4

 As Mike said, adding one extra parameter to get_template_part() is fine.

 But checking if the $slug is an array and then treating the whole function
 as having associative args would be really confusing.

 In conclusion, the patch looks fine. Let's try to land it in 3.5.

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


More information about the wp-trac mailing list