Ticket #16857: 16857.diff
| File 16857.diff, 558 bytes (added by scribu, 2 years ago) |
|---|
-
wp-includes/query.php
2897 2897 if ( $term && ! is_wp_error($term) ) { 2898 2898 $this->queried_object = $term; 2899 2899 $this->queried_object_id = (int) $term->term_id; 2900 2901 if ( $this->is_category ) { 2902 _make_cat_compat( $this->queried_object ); 2903 } 2900 2904 } 2901 2905 } elseif ( $this->is_post_type_archive ) { 2902 2906 $this->queried_object = get_post_type_object( $this->get('post_type') );
