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: http://svn.automattic.com/wordpress/trunk@3252 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
3e14966b54
commit
40a83116c2
|
@ -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