[wp-trac] Re: [WordPress Trac] #10067: theme_basename() not using get_theme_root()

WordPress Trac wp-trac at lists.automattic.com
Mon Jun 8 11:59:01 GMT 2009


#10067: theme_basename() not using get_theme_root()
--------------------------+-------------------------------------------------
 Reporter:  bforchhammer  |       Owner:                       
     Type:  defect (bug)  |      Status:  new                  
 Priority:  normal        |   Milestone:  2.9                  
Component:  Themes        |     Version:  2.8                  
 Severity:  normal        |    Keywords:  has-patch 2nd-opinion
--------------------------+-------------------------------------------------

Comment(by filosofo):

 Replying to [comment:9 bforchhammer]:
 > I vote for "with theme folder". And if only to prevent further confusion
 ;-)

 That does make the most sense, since it's parallel with plugin_basename.

 However, what's the point of this function if it's not used by core?
 Plugins can be placed directly in the plugins directory or in a sub-
 directory, so plugin_basename helps the plugin determine which.

 In contrast, themes ''must'' be in their own sub-directory of themes.  So
 if a theme wants its current directory name, it can get it much more
 efficiently with {{{basename(dirname(__FILE__))}}}

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


More information about the wp-trac mailing list