[wp-trac] [WordPress Trac] #22355: Template stack - Beyond parent/child theme relationships

WordPress Trac noreply at wordpress.org
Sat Nov 3 23:21:34 UTC 2012


#22355: Template stack - Beyond parent/child theme relationships
-----------------------------+------------------------------
 Reporter:  johnjamesjacoby  |       Owner:
     Type:  enhancement      |      Status:  new
 Priority:  normal           |   Milestone:  Awaiting Review
Component:  Themes           |     Version:
 Severity:  normal           |  Resolution:
 Keywords:  has-patch        |
-----------------------------+------------------------------

Comment (by scribu):

 And you could control the order (parent theme, child theme, plugin) via
 the priority arg. Got it.

 Instead of:

 {{{
 register_template_stack( 'get_stylesheet_directory', 10 );
 }}}

 why couldn't you do:

 {{{
 register_template_stack( get_stylesheet_directory(), 10 );
 }}}

 since the callback just returns a path, which only needs to be computed
 once.

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


More information about the wp-trac mailing list