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
git-svn-id: https://develop.svn.wordpress.org/trunk@21208 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
b9ddde32f8
commit
e7d8706111
|
@ -164,13 +164,13 @@ class WP {
|
||||||
// requested permalink.
|
// requested permalink.
|
||||||
$req_uri = str_replace($pathinfo, '', $req_uri);
|
$req_uri = str_replace($pathinfo, '', $req_uri);
|
||||||
$req_uri = trim($req_uri, '/');
|
$req_uri = trim($req_uri, '/');
|
||||||
$req_uri = preg_replace("|^$home_path|", '', $req_uri);
|
$req_uri = preg_replace("|^$home_path|i", '', $req_uri);
|
||||||
$req_uri = trim($req_uri, '/');
|
$req_uri = trim($req_uri, '/');
|
||||||
$pathinfo = trim($pathinfo, '/');
|
$pathinfo = trim($pathinfo, '/');
|
||||||
$pathinfo = preg_replace("|^$home_path|", '', $pathinfo);
|
$pathinfo = preg_replace("|^$home_path|i", '', $pathinfo);
|
||||||
$pathinfo = trim($pathinfo, '/');
|
$pathinfo = trim($pathinfo, '/');
|
||||||
$self = trim($self, '/');
|
$self = trim($self, '/');
|
||||||
$self = preg_replace("|^$home_path|", '', $self);
|
$self = preg_replace("|^$home_path|i", '', $self);
|
||||||
$self = trim($self, '/');
|
$self = trim($self, '/');
|
||||||
|
|
||||||
// The requested permalink is in $pathinfo for path info requests and
|
// The requested permalink is in $pathinfo for path info requests and
|
||||||
|
|
Loading…
Reference in New Issue