[wp-trac] [WordPress Trac] #23924: get_template_part() doesn't pass variables

WordPress Trac noreply at wordpress.org
Wed Apr 3 12:35:26 UTC 2013


#23924: get_template_part() doesn't pass variables
-----------------------------+--------------------------
 Reporter:  Looimaster       |       Type:  defect (bug)
   Status:  new              |   Priority:  normal
Milestone:  Awaiting Review  |  Component:  General
  Version:  3.5.1            |   Severity:  normal
 Keywords:                   |
-----------------------------+--------------------------
 If I'm not mistaken neither locate_template(); nor get_template_part();
 passes variables. This is different than PHP's include() and thus causes
 unexpected behavior.

 When someone includes a file then there's a 95% chance that they will want
 to use its variables but it's not possible at this moment.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/23924>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list