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

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


#18265: Use load_template in template-loader.php
-------------------------+----------------------
 Reporter:  elyobo       |       Owner:
     Type:  enhancement  |      Status:  closed
 Priority:  normal       |   Milestone:
Component:  Template     |     Version:
 Severity:  normal       |  Resolution:  wontfix
 Keywords:  has-patch    |
-------------------------+----------------------
Changes (by nacin):

 * status:  new => closed
 * resolution:   => wontfix
 * milestone:  Awaiting Review =>


Comment:

 The other problem is that `extract($GLOBALS);` would simply create local
 variables of those values -- references aren't maintained to the global
 variables.

 While this sounds like a great idea in theory -- no more stomping the
 $post or $wp globals, etc. -- it would break a LOT of existing code that
 makes edits to core globals on the fly.

 So it's more than just a negative reaction. We can't do load_template()
 without the globals, and we can't extract the globals, so this is a
 wontfix.

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


More information about the wp-trac mailing list