diff --git a/wp-includes/query.php b/wp-includes/query.php index 95ecb7a640..d3e7694689 100644 --- a/wp-includes/query.php +++ b/wp-includes/query.php @@ -2897,6 +2897,9 @@ class WP_Query { if ( $term && ! is_wp_error($term) ) { $this->queried_object = $term; $this->queried_object_id = (int) $term->term_id; + + if ( $this->is_category ) + _make_cat_compat( $this->queried_object ); } } elseif ( $this->is_post_type_archive ) { $this->queried_object = get_post_type_object( $this->get('post_type') );