[wp-trac] [WordPress Trac] #18265: Use load_template in template-loader.php
WordPress Trac
wp-trac at lists.automattic.com
Wed Jul 27 12:54:26 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 scribu):
* status: reopened => closed
* resolution: => wontfix
Comment:
Since in your own theme you don't have to worry about backwards-
compatibility, you could force template-loader.php to call
load_template():
{{{
function force_load_template( $template ) {
load_template( $template );
die;
}
add_filter( 'template_include', 'force_load_template', 999 );
}}}
Re-closing as wontfix. Feel free to leave further comments, though.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/18265#comment:18>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list