[wp-trac] [WordPress Trac] #20509: Theme idea - generic.php
WordPress Trac
wp-trac at lists.automattic.com
Wed Apr 25 10:40:06 UTC 2012
#20509: Theme idea - generic.php
-----------------------------+------------------------------
Reporter: johnjamesjacoby | Owner:
Type: feature request | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Themes | Version:
Severity: normal | Resolution:
Keywords: dev-feedback |
-----------------------------+------------------------------
Comment (by chrisclayton):
Replying to [comment:17 johnbillion]:
> It might be nice if plugins could register the path to their bundled
generic.php as a fallback file, that way they won't need to mess around
with hooking into `template_include` and checking for the existance of
generic.php in the theme.
>
What about a series of fall backs? all other templates have a heirarchy,
why leave generic.php out?
Something like:
- theme/generic-plugin.php (eg. generic-bbpress.php will tell bbpress to
use this special template)
- theme/generic.php (basic generic template for other plugins)
- the-plugin/generic.php (the plugin that is trying to use generic.php.
eg. plugins/bbpress/generic.php)
- theme/index.php (If all else fails, let's throw it inside index.php
instead of leaving users with nothing)
etc.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/20509#comment:21>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list