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:
ryan 2008-03-27 20:10:29 +00:00
parent a0706cbb8a
commit 6d81b777d7

View File

@ -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