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

WordPress Trac noreply at wordpress.org
Mon Aug 26 18:53:03 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 jeremyfelt):

 Replying to [comment:24 wonderboymusic]:
 > I think passing `$data` or `$args` down the chain is worse than
 importing globals.
 and
 > If you hate global scope, limit your app's global pollution to one
 object

 Those sum up my feelings.

 +1 for close/wontfix

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


More information about the wp-trac mailing list