[wp-trac] [WordPress Trac] #20509: Theme idea - generic.php
WordPress Trac
wp-trac at lists.automattic.com
Sun Jun 10 19:31: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: needs-patch dev-feedback |
--------------------------------------+------------------------------
Comment (by johnjamesjacoby):
Replying to [comment:31 dd32]:
> > Maybe we can have a fallback generic.php template in Core, like we
have for sidebar.php.
>
> I have a feeling that would go against (my understanding of) the purpose
of the original idea myself.
>
> The part of the problem that this is trying to solve is that you can't
just include get_header() / get_sidebar() and get_footer() into a template
file and expect the output to look like the theme, it needs to use the
themes markup, As soon as we look at having a core-included "backup" we
simply move the problem from plugins into core.
>
> I'd have thought that the best backwards compatible option would be to
make it easy for the page template to be used (failing that, the index
template) through the same action as the generic template hook uses.. so
hopefully the plugin/theme shouldn't have to do anything special at all.
>
This is the way that bbPress works, and the problem with this approach is
having additional markup for pagination, Previous/Next, and comments. It
would be great if themes came with the header, sidebar, footer, and
surrounding mark-up, without any of the post/page/WordPress specific bits
hard-coded into them.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/20509#comment:40>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list