wp_query status not set during preventAuthorNScans
-
This issue is causing template function is_404 to return false, which might result in some problems.
In my case it’s notice inside breadcrumbs, cause it didn’t realize we are on 404 and failed to populate it correctly.
It should include something like that or similar before / after
status_header(404);
global $wp_query;
if ( !is_object( $wp_query ) ) {
$wp_query = new WP_Query();
}
$wp_query->is_404 = true;
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘wp_query status not set during preventAuthorNScans’ is closed to new replies.