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

WordPress Trac wp-trac at lists.automattic.com
Wed Oct 14 11:37:10 UTC 2009


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

  * status:  closed => reopened
  * resolution:  fixed =>


Comment:

 Slight issue with this: #10953

 Some other thoughts: This would be better accepting an absolute
 directory..

 My reasoning is that plugins are not always relative to the
 WP_CONTENT_DIR, which really limits its usage for that.. It means that for
 100% compatibility, Plugins are going to have to work out a relative link
 dynamically.. You cant just go hard-coding 'plugins/my-plugin-name/my-
 theme'.. It changes.. Passing however, dirname(__FILE__).'/my-theme' would
 work if it was a absolute path required.

 I'm reopening this for feedback on the latter issue..

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


More information about the wp-trac mailing list