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

WordPress Trac wp-trac at lists.automattic.com
Thu Jul 23 21:59:50 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 dd32):

 > @dd32: That is another option, but it sounds as though it would probably
 be hacky. Doing it this way at least keeps within the standard way of
 activating and loading themes.

 I guess your method would work alright, Just as long as its possible to
 filter both the source dir for the theme, and be able to inject it into
 the themes array early enough not to set off any alarm bells over
 incomplete themes.

 The way i see it, My method is mearly a wrapper around the filters you're
 describing basically, much like the plugin activate hooks. 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)

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


More information about the wp-trac mailing list