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

WordPress Trac wp-trac at lists.automattic.com
Mon Jun 8 09:32:20 GMT 2009


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

Comment(by dd32):

 > Shouldn't the file name include the name of the theme folder? At least
 that's how plugin_basename() works; it includes the folder name of the
 plugin.

 I'd agree with you, Except for the fact it was done differently for a
 reason.

 My guess is, You dont have mutliple themes active at once, like plugins,
 So all basenames will be relative to the current themes folder, not the
 themes directory.

 Add a {{{/[^/]*?/?}}} after what you've added i think

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


More information about the wp-trac mailing list