From a266c82c4732e3ac43762e26326f735b6e90f117 Mon Sep 17 00:00:00 2001 From: rboren Date: Sun, 13 Feb 2005 20:01:41 +0000 Subject: [PATCH] Do not use is_*() functions before query_posts() runs. git-svn-id: http://svn.automattic.com/wordpress/trunk@2301 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-blog-header.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/wp-blog-header.php b/wp-blog-header.php index f426c37a641c..4ff27e677848 100644 --- a/wp-blog-header.php +++ b/wp-blog-header.php @@ -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 @@ -188,6 +185,9 @@ header('HTTP/1.x 404 Not Found'); } +if ( is_trackback() ) + $doing_trackback = true; + $wp_did_header = true; endif;