Don't attempt to match the index against a rule. This fixes problems with /index.php requests matching agagainst the %category% rewrite rules.
git-svn-id: https://develop.svn.wordpress.org/trunk@3252 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
aa5674dc27
commit
b6d0d21f63
@ -1470,8 +1470,12 @@ class WP {
|
||||
if ( ! empty($pathinfo) && ($wp_rewrite->index != $pathinfo) ) {
|
||||
$request = $pathinfo;
|
||||
} else {
|
||||
// If the request uri is the index, blank it out so that we don't try to match it against a rule.
|
||||
if ( $req_uri == $wp_rewrite->index )
|
||||
$req_uri = '';
|
||||
$request = $req_uri;
|
||||
}
|
||||
|
||||
$this->request = $request;
|
||||
|
||||
// Look for matches.
|
||||
|
Loading…
Reference in New Issue
Block a user