[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:11:15 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 filosofo):

 The regexp in the patch does not match the subdirectory of the
 {{{themes/}}} directory, as does the original line.  I think it should be:

 {{{
 $file = preg_replace('#^'. preg_quote($theme_dir, '#')
 .'/.*?/#','',$file); // get relative path from theme dir
 }}}

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


More information about the wp-trac mailing list