[wp-trac] [WordPress Trac] #16128: WordPress Template System Override
WordPress Trac
wp-trac at lists.automattic.com
Thu Jan 6 21:16:57 UTC 2011
#16128: WordPress Template System Override
-----------------------------------+-----------------------------
Reporter: pearsonified | Owner:
Type: feature request | Status: new
Priority: normal | Milestone: Future Release
Component: Themes | Version: 3.1
Severity: normal | Resolution:
Keywords: has-patch 2nd-opinion |
-----------------------------------+-----------------------------
Comment (by greuben):
Replying to [comment:4 nathanrice]:
> Replying to [comment:3 duck_]:
> > Why can't template_redirect be used for this?
>
> The idea is to circumvent the standard template loader. I'm not sure
where template_redirect fires (either before or after the template loader
runs) but the idea is to stop the standard template loader from running if
there is an alternate loader present.
Current theme supports? constants? Sounds scary to me.
Okay let's say if you have used current_theme_supports 'theme-templates'
or 'WP_THEME_TEMPLATE', what do you do with the action theme_template?
check for same is_* and load files with different name??
You can either use 'template_redirect' or 'template_include' action to
load whatever template you want.
Or did I get you wrong?
--
Ticket URL: <http://core.trac.wordpress.org/ticket/16128#comment:6>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list