[wp-trac] [WordPress Trac] #18265: Use load_template in template-loader.php
WordPress Trac
wp-trac at lists.automattic.com
Wed Jul 27 11:23:56 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 |
-------------------------+-----------------------
Changes (by elyobo):
* status: closed => reopened
* resolution: wontfix =>
Comment:
That's not entirely true, you could do something like
{{{
foreach (array_keys($GLOBALS) as $glob) {
global $$glob;
}
}}}
I'm not sure about the performance implications of that though, WP has a
lot of globals.
If we don't do that, how about adding an extract($wp_query->query_vars) to
template-loader.php; this way the behaviour is consistent for the
templates at least, even though the approach is inconsistent. I expect
that performance would be better than manually reglobalising all the
globals.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/18265#comment:4>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list