Reply To: 404_template hook fires wrongly
Thanks for your response. The upcoming version 2.6 seems to solve the issue. I’ve tested it with 2.5.13 yet. Today I’ve tried 2.6-rc-3 and the 404 error is gone.
My testing environment is WP 4.8.1, no other plugins than bbPress, Twenty Seventeen Theme.
I’ve added the following lines to the Theme’s functions.php tp figure it out:
add_filter( '404_template', function() {
global $wp_query;
print_r( $wp_query );
die();
} );
In bbPress 2.5.13 the 404_template filter fires and is_404 is true. In 2.6-rc-3 the filter does not fire.
Would you please do me favor and also check it with 2.5.13 just to be sure?
Thanks,
Peter