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

WordPress Trac noreply at wordpress.org
Fri Aug 16 17:47:54 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  |
-----------------------------+------------------------------
Changes (by mintindeed):

 * cc: gabriel.koen@… (added)


Comment:

 +1 for this.  It doesn't make sense to expose all your vars in the global
 scope, or have to write a custom accessor, just so you can use a core
 function.  Not to mention the whole mess of global name collisions.

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


More information about the wp-trac mailing list