From e7d8706111f6152ed8c8d16dbb0a265eaf4394b5 Mon Sep 17 00:00:00 2001 From: Mark Jaquith Date: Thu, 5 Jul 2012 13:50:24 +0000 Subject: [PATCH] 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 --- wp-includes/class-wp.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/wp-includes/class-wp.php b/wp-includes/class-wp.php index b06abed4c5..be0f56a816 100644 --- a/wp-includes/class-wp.php +++ b/wp-includes/class-wp.php @@ -164,13 +164,13 @@ class WP { // requested permalink. $req_uri = str_replace($pathinfo, '', $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, '/'); $pathinfo = trim($pathinfo, '/'); - $pathinfo = preg_replace("|^$home_path|", '', $pathinfo); + $pathinfo = preg_replace("|^$home_path|i", '', $pathinfo); $pathinfo = trim($pathinfo, '/'); $self = trim($self, '/'); - $self = preg_replace("|^$home_path|", '', $self); + $self = preg_replace("|^$home_path|i", '', $self); $self = trim($self, '/'); // The requested permalink is in $pathinfo for path info requests and