[wp-trac] [WordPress Trac] #10467: Add a filter for changing where parent templates are located

WordPress Trac wp-trac at lists.automattic.com
Sat Oct 10 08:42:15 UTC 2009


#10467: Add a filter for changing where parent templates are located
-------------------------+--------------------------------------------------
 Reporter:  apeatling    |       Owner:                                              
     Type:  enhancement  |      Status:  new                                         
 Priority:  normal       |   Milestone:  2.9                                         
Component:  Themes       |     Version:  2.8                                         
 Severity:  normal       |    Keywords:  has-patch, themes, parent themes, buddypress
-------------------------+--------------------------------------------------

Comment(by markjaquith):

 Updated patch to be relative to WP dir and to remove unnecessary
 {{{$wp_themes}}} calls. {{{get_themes()}}} returns {{{$wp_themes}}} if it
 exists, so there's no need to replicate that logic in all the other
 functions. We can just call {{{get_themes()}}} and it'll give us the
 cached global variable or it'll dynamically populate it.

 Still looking over the patch.

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


More information about the wp-trac mailing list