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