return;
} // If we've already issued a 404, bail.
if ( is_404() ) { return;
} $set_404 = true;
// Never 404 for the admin, robots, or favicon.
if ( is_admin() ||
is_robots() ||
is_favicon() ) { $set_404 = false;
// If posts were found, check for paged content.
} elseif ( $wp_query->posts
) { $content_found = true;
if ( is_singular() ) { $post =
isset( $wp_query->post
) ?
$wp_query->post : null;
$next = '<!--nextpage-->';
// Check for paged content that exceeds the max number of pages.