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

WordPress Trac wp-trac at lists.automattic.com
Wed Jul 27 11:56:02 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 elyobo):

 I completely agree on the globals front, I did a check the other day and
 identified 272 distinct variables called globalised with the "global"
 keyword in WP core :)

 However, load_templates doesn't take a $load argument; it ''always''
 extracts the query vars (the boolean argument is whether to include or or
 require_once), so it ''is'' definitely doing this in core already.

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


More information about the wp-trac mailing list