[wp-trac] [WordPress Trac] #20449: get_home_path() error on windows with different home and site_url values

WordPress Trac noreply at wordpress.org
Mon Nov 19 16:47:06 UTC 2012


#20449: get_home_path() error on windows with different home and site_url values
--------------------------+---------------------
 Reporter:  iturgeon      |       Owner:  dd32
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:  3.5
Component:  Permalinks    |     Version:  3.3.1
 Severity:  normal        |  Resolution:  fixed
 Keywords:  has-patch     |
--------------------------+---------------------

Comment (by WraithKenny):

 If on `D:\root\vhosts\site\httpdocs\wp\wp-admin\options-permalink.php`
 with a subfolder install (`$wp_path_rel_to_home = '/wp'`) the desired
 result is `D:\root\vhosts\site\httpdocs\` but we get
 `D:\root\vhosts\site\httpdocs\wp\`

 This causes the `.htaccess` file to be written to the WordPress Address
 rather then the Site Address.

 The strripos hits the `wp` in `wp-admin` so in the special case that the
 subfolder is `wp` (like Mark's skeleton) this patch doesn't work well.

 Should this be reopened, or a new ticket?

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


More information about the wp-trac mailing list