Remove unanchored string replacement. Props nh7a. fixes #6423
git-svn-id: http://svn.automattic.com/wordpress/trunk@7551 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
a0706cbb8a
commit
6d81b777d7
|
@ -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