[wp-trac] [WordPress Trac] #10447: get_home_path() fails when home url and site url differ in case

WordPress Trac wp-trac at lists.automattic.com
Sun Jul 19 08:32:31 UTC 2009


#10447: get_home_path() fails when home url and site url differ in case
-------------------------------+--------------------------------------------
 Reporter:  Denis-de-Bernardy  |       Owner:  dd32       
     Type:  defect (bug)       |      Status:  new        
 Priority:  normal             |   Milestone:  2.9        
Component:  Filesystem         |     Version:             
 Severity:  normal             |    Keywords:  2nd-opinion
-------------------------------+--------------------------------------------

Comment(by Denis-de-Bernardy):

 Yup, we're on the same wavelength. I think it something like this, in
 get_home_path(), might do the trick:

 {{{
 $home = parse_url($home);
 $home = $home['path'];
 $siteurl = parse_url($siteurl);
 $siteurl = $siteurl['path'];
 }}}

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


More information about the wp-trac mailing list