Make WordPress Core

Changeset 21208


Ignore:
Timestamp:
07/05/2012 01:50:24 PM (13 years ago)
Author:
markjaquith
Message:

Allow home page of multisite (subdir install) sites to resolve regardless of capitalization, as they already do for URLs other than the home page. props SergeyBiryukov. fixes #16200

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/class-wp.php

    r21163 r21208  
    165165            $req_uri = str_replace($pathinfo, '', $req_uri);
    166166            $req_uri = trim($req_uri, '/');
    167             $req_uri = preg_replace("|^$home_path|", '', $req_uri);
     167            $req_uri = preg_replace("|^$home_path|i", '', $req_uri);
    168168            $req_uri = trim($req_uri, '/');
    169169            $pathinfo = trim($pathinfo, '/');
    170             $pathinfo = preg_replace("|^$home_path|", '', $pathinfo);
     170            $pathinfo = preg_replace("|^$home_path|i", '', $pathinfo);
    171171            $pathinfo = trim($pathinfo, '/');
    172172            $self = trim($self, '/');
    173             $self = preg_replace("|^$home_path|", '', $self);
     173            $self = preg_replace("|^$home_path|i", '', $self);
    174174            $self = trim($self, '/');
    175175
Note: See TracChangeset for help on using the changeset viewer.