Skip to content

Commit

Permalink
Path info permalinks weren't getting 404 treatment.
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.automattic.com/wordpress/trunk@2510 1a063a9b-81f0-0310-95a4-ce76da25c4cd
  • Loading branch information
ryan committed Apr 3, 2005
1 parent 8f5144c commit d27f6e5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions wp-blog-header.php
Original file line number Diff line number Diff line change
Expand Up @@ -183,8 +183,8 @@
// 404 if one was already issued, if the request was a search, or if the
// request was a regular query string request rather than a permalink request.
if ( (0 == count($posts)) && !is_404() && !is_search()
&& !empty($_SERVER['QUERY_STRING']) &&
(false === strpos($_SERVER['REQUEST_URI'], '?')) ) {
&& ( isset($rewrite) || (!empty($_SERVER['QUERY_STRING']) &&
(false === strpos($_SERVER['REQUEST_URI'], '?'))) ) ) {
$wp_query->is_404 = true;
if ( preg_match('/cgi/', php_sapi_name()) )
@header('Status: 404 Not Found');
Expand Down Expand Up @@ -231,6 +231,7 @@
include(get_date_template());
exit;
} else if ( is_archive() && get_archive_template() ) {
echo "here";
include(get_archive_template());
exit;
} else if ( is_comments_popup() && get_comments_popup_template() ) {
Expand Down

0 comments on commit d27f6e5

Please sign in to comment.