Remove unanchored string replacement. Props nh7a. fixes #6423
git-svn-id: https://develop.svn.wordpress.org/trunk@7551 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
ba75677939
commit
39ee18d8f3
|
@ -72,7 +72,6 @@ class WP {
|
|||
$pathinfo = trim($pathinfo, '/');
|
||||
$self = trim($self, '/');
|
||||
$self = preg_replace("|^$home_path|", '', $self);
|
||||
$self = str_replace($home_path, '', $self);
|
||||
$self = trim($self, '/');
|
||||
|
||||
// The requested permalink is in $pathinfo for path info requests and
|
||||
|
|
Loading…
Reference in New Issue