Do not use is_*() functions before query_posts() runs.
git-svn-id: http://svn.automattic.com/wordpress/trunk@2301 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
8fd4dd7b12
commit
a266c82c47
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue