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

WordPress Trac wp-trac at lists.automattic.com
Sun Jun 10 19:28:36 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:37 scribu]:
 > So, I went ahead and added generic.php to a theme. This is what I ended
 up with:
 >
 > https://gist.github.com/2890140
 This is really neat. I like how simple it is. I have a problem with the
 semantics, though.

 I'd rather we didn't use template_redirect, but instead ride on the
 shoulders of template_include and pull in the generic.php or
 plugin-{slug}.php from that point within WordPress core.

 If plugins are expected to develop things to work and look like wordPress
 core, it needs to be just a bit easier to do it the WordPress way.

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


More information about the wp-trac mailing list