diff --git a/wp-includes/classes.php b/wp-includes/classes.php index 10623b4764..9b127424c4 100644 --- a/wp-includes/classes.php +++ b/wp-includes/classes.php @@ -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