mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 12:20:22 +00:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user