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

WordPress Trac noreply at wordpress.org
Mon Aug 26 18:40:25 UTC 2013


#21676: Pass a variable to get_template_part()
-----------------------------+------------------------------
 Reporter:  sc0ttkclark      |       Owner:
     Type:  enhancement      |      Status:  new
 Priority:  normal           |   Milestone:  Awaiting Review
Component:  Template         |     Version:  3.4.1
 Severity:  normal           |  Resolution:
 Keywords:  has-patch close  |
-----------------------------+------------------------------

Comment (by ysalame):

 I second amaschas reasons with massive force. Multiple times I had the
 need to go around get_template_part() because of this limitation. Abuse of
 globals is bad practive and multiple times I just need small bits of data
 on partial content.

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


More information about the wp-trac mailing list