[wp-trac] [WordPress Trac] #18265: Use load_template in template-loader.php
WordPress Trac
wp-trac at lists.automattic.com
Wed Jul 27 13:03:40 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 |
-------------------------+----------------------
Comment (by scribu):
Thinking more about the ideal load_template() function, even did accept a
$data arg, it would still be akward to use, since it's called from WP
Core, not your own code.
But with the 'template_include' filter you can do pretty much whatever you
want: check {{{basename( $template )}}}, use conditional tags like
is_single(), use your own version of load_template() etc.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/18265#comment:22>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list