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

WordPress Trac noreply at wordpress.org
Mon Aug 26 20:49:54 UTC 2013


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

Comment (by sc0ttkclark):

 I believe I've put some strong arguments for passing a variable/args
 and/or scoping variables for get_template_part. I haven't heard a
 compelling enough argument against all of these potential options, and it
 seems like there are others who have been having the same concerns.

 Core Devs: Is there not enough merit in this function having this ability,
 or another function created with child/parent theme aware including of a
 file and passing that file an arg array or to scope vars?

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


More information about the wp-trac mailing list