If we attempt path info matching but do not match, set 404. Also, retabify some code.
git-svn-id: https://develop.svn.wordpress.org/trunk@1697 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
d278d6b8ae
commit
fee2d2df3c
@ -14,6 +14,9 @@ $query_vars = array();
|
||||
if ((isset($_GET['error']) && $_GET['error'] == '404') ||
|
||||
(! empty( $_SERVER['PATH_INFO']))) {
|
||||
|
||||
// If we match a rewrite rule, this will be cleared.
|
||||
$error = '404';
|
||||
|
||||
// Fetch the rewrite rules.
|
||||
$rewrite = rewrite_rules('matches');
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user