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

WordPress Trac wp-trac at lists.automattic.com
Fri Sep 14 19:16:16 UTC 2012


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

Comment (by sc0ttkclark):

 The end goal of this ticket, is to provide a way to pass data and
 additional context into a template file, that's child/parent theme aware,
 and includes that file.

 get_template_part does part of that, the proposed wp_load_template would
 do part of that, why not go all the way or at the very least offer another
 function that does handle child/parent theming?

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


More information about the wp-trac mailing list