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

WordPress Trac wp-trac at lists.automattic.com
Fri Jul 24 15:37:23 UTC 2009


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

Comment(by apeatling):

 But it would mean the Core handles most of the work and its done right
 everytime, not half-baked by a dodgy plugin or 2. (Of course, its not
 worth protecting against 1 or 2 dodgies, its a fact of life)

 You do have to protect against this. In the second patch I've added a
 reset to the themes loop that will undo the filtered values. That way it's
 only possible to filter the values for a specific theme and not mess up
 any others.

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


More information about the wp-trac mailing list