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:
parent
3d321e23a5
commit
4b80a070e7
@ -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
Block a user