[wp-trac] [WordPress Trac] #18265: Use load_template in template-loader.php

WordPress Trac wp-trac at lists.automattic.com
Wed Jul 27 11:51:06 UTC 2011


#18265: Use load_template in template-loader.php
-------------------------+-----------------------
 Reporter:  elyobo       |       Owner:
     Type:  enhancement  |      Status:  reopened
 Priority:  normal       |   Milestone:
Component:  Template     |     Version:
 Severity:  normal       |  Resolution:
 Keywords:  has-patch    |
-------------------------+-----------------------

Comment (by nacin):

 I never even realized that load_template() did an extract on query_vars.
 Because load_template() with $load = true is never used in core, this
 would more or less be new behavior, and it will break things. Some query
 var globals are guaranteed to step over variables used in template files.

 We don't want more globals, we want less. If you need a query var, use
 get_query_var(). Again suggesting wontfix.

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


More information about the wp-trac mailing list