Do not use is_*() functions before query_posts() runs.

git-svn-id: https://develop.svn.wordpress.org/trunk@2301 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2005-02-13 20:01:41 +00:00
parent 3d321e23a5
commit 4b80a070e7
1 changed files with 5 additions and 5 deletions

View File

@ -101,14 +101,11 @@ for ($i=0; $i<count($wpvarstoreset); $i += 1) {
}
}
if ( is_trackback() )
$doing_trackback = true;
// Sending HTTP headers
if ( is_404() ) {
if ( !empty($error) && '404' == $error ) {
header('HTTP/1.x 404 Not Found');
} else if ( !is_feed() ) {
} else if ( empty($feed) ) {
@header('X-Pingback: '. get_bloginfo('pingback_url'));
} else {
// We're showing a feed, so WP is indeed the only thing that last changed
@ -188,6 +185,9 @@ if ( (0 == count($posts)) && !is_404() && !is_search()
header('HTTP/1.x 404 Not Found');
}
if ( is_trackback() )
$doing_trackback = true;
$wp_did_header = true;
endif;