[wp-trac] [WordPress Trac] #16128: WordPress Template System Override

WordPress Trac wp-trac at lists.automattic.com
Thu Jan 6 20:11:50 UTC 2011


#16128: WordPress Template System Override
-----------------------------------+-----------------------------
 Reporter:  pearsonified           |       Owner:
     Type:  feature request        |      Status:  new
 Priority:  normal                 |   Milestone:  Future Release
Component:  Themes                 |     Version:  3.1
 Severity:  normal                 |  Resolution:
 Keywords:  has-patch 2nd-opinion  |
-----------------------------------+-----------------------------

Comment (by nathanrice):

 I like the idea ... theme authors really should have a little more control
 in the template loading arena, if for no other reason than to extent
 (rather than replace) the current system.

 However, instead of using a constant, let's take advantage of the theme
 support functionality. Adding theme-specific functionality is a perfect
 use for those functions.

 In my patch, the code checks to see if the theme supports 'theme-
 templates'. Probably needs a better naming scheme, but this one will do
 for testing purposes, and can be renamed later. All that needs to be done
 to activate custom theme templating is to add the following to a theme's
 functions.php file:

 {{{
 add_theme_support('theme-templates');
 }}}

 Patch attached ...

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


More information about the wp-trac mailing list