Ticket #10722: 10722.diff
File 10722.diff, 705 bytes (added by , 15 years ago) |
---|
-
wp-includes/classes.php
474 474 function handle_404() { 475 475 global $wp_query; 476 476 477 if ( ( 0 == count( $wp_query->posts ) ) && !is_404() && !is_robots() && !is_search() && !is_home() ) {477 if ( ( 0 == count( $wp_query->posts ) ) && !is_404() && !is_robots() && !is_search() && !is_home() && apply_filters('handle_404', true, $wp_query) ) { 478 478 // Don't 404 for these queries if they matched an object. 479 479 if ( ( is_tag() || is_category() || is_tax() || is_author() ) && $wp_query->get_queried_object() ) { 480 480 if ( !is_404() )