mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-17 20:15:08 +00:00
If we attempt path info matching but do not match, set 404. Also, retabify some code.
git-svn-id: http://svn.automattic.com/wordpress/trunk@1697 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
75d974639b
commit
0cdc3aaff5
@ -14,6 +14,9 @@ $query_vars = array();
|
|||||||
if ((isset($_GET['error']) && $_GET['error'] == '404') ||
|
if ((isset($_GET['error']) && $_GET['error'] == '404') ||
|
||||||
(! empty( $_SERVER['PATH_INFO']))) {
|
(! empty( $_SERVER['PATH_INFO']))) {
|
||||||
|
|
||||||
|
// If we match a rewrite rule, this will be cleared.
|
||||||
|
$error = '404';
|
||||||
|
|
||||||
// Fetch the rewrite rules.
|
// Fetch the rewrite rules.
|
||||||
$rewrite = rewrite_rules('matches');
|
$rewrite = rewrite_rules('matches');
|
||||||
|
|
||||||
@ -74,7 +77,7 @@ if ((isset($_GET['error']) && $_GET['error'] == '404') ||
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$wpvarstoreset = array('m','p','posts','w', 'cat','withcomments','s','search','exact', 'sentence','poststart','postend','preview','debug', 'calendar','page','paged','more','tb', 'pb','author','order','orderby', 'year', 'monthnum', 'day', 'hour', 'minute', 'second', 'name', 'category_name', 'feed', 'author_name', 'static', 'pagename', 'error');
|
$wpvarstoreset = array('m','p','posts','w', 'cat','withcomments','s','search','exact', 'sentence','poststart','postend','preview','debug', 'calendar','page','paged','more','tb', 'pb','author','order','orderby', 'year', 'monthnum', 'day', 'hour', 'minute', 'second', 'name', 'category_name', 'feed', 'author_name', 'static', 'pagename', 'error');
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user