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

WordPress Trac wp-trac at lists.automattic.com
Wed Apr 25 15:23:12 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 scribu):

 > This means that newer themes which include a generic.php template get
 more control over the layout of a generic request, and older themes
 without the template file will fall back to the current system where
 plugins load their own template file.

 Yes, and what I'm suggesting is that the fallback be handled by Core,
 since plugins don't have more information than Core anyway.

 > 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.

 Ok, then let's do that.

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


More information about the wp-trac mailing list