Skip to content

Commit

Permalink
Do not use is_*() functions before query_posts() runs.
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.automattic.com/wordpress/trunk@2301 1a063a9b-81f0-0310-95a4-ce76da25c4cd
  • Loading branch information
rboren committed Feb 13, 2005
1 parent 8fd4dd7 commit a266c82
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions wp-blog-header.php
Original file line number Diff line number Diff line change
Expand Up @@ -101,14 +101,11 @@
}
}

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
Expand Down Expand Up @@ -188,6 +185,9 @@
header('HTTP/1.x 404 Not Found');
}

if ( is_trackback() )
$doing_trackback = true;

$wp_did_header = true;
endif;

Expand Down

0 comments on commit a266c82

Please sign in to comment.