If PATH_INFO contains the index, don't use it for permalinks. Props gslin. fixes #1591

git-svn-id: https://develop.svn.wordpress.org/trunk@2852 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren
2005-09-08 20:48:09 +00:00
parent 3e618e13be
commit 91b0c51004
+1 -1
View File
@@ -1365,7 +1365,7 @@ class WP {
// The requested permalink is in $pathinfo for path info requests and
// $req_uri for other requests.
if (! empty($pathinfo)) {
if (! empty($pathinfo) && ($wp_rewrite->index != $pathinfo)) {
$request = $pathinfo;
} else {
$request = $req_uri;