[wp-trac] [WordPress Trac] #20509: Theme idea - generic.php

WordPress Trac wp-trac at lists.automattic.com
Wed Apr 25 13:40:50 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 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.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/20509#comment:31>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list