mirror of
https://github.com/WordPress/WordPress.git
synced 2024-09-29 07:37:44 +02:00
If PATH_INFO contains the index, don't use it for permalinks. Props gslin. fixes #1591
git-svn-id: http://svn.automattic.com/wordpress/trunk@2852 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
2ddfc1c1d6
commit
9df8152e7f
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user