Ticket #19939: even-better-patch.diff
| File even-better-patch.diff, 1.0 KB (added by wonderboymusic, 16 months ago) |
|---|
-
wp-includes/query.php
2929 2929 $this->queried_object = null; 2930 2930 $this->queried_object_id = 0; 2931 2931 2932 if ( $this->is_category || $this->is_tag || $this->is_tax ) { 2932 if ( $this->is_post_type_archive ) { 2933 $this->queried_object = get_post_type_object( $this->get('post_type') ); 2934 } elseif ( $this->is_category || $this->is_tag || $this->is_tax ) { 2933 2935 $tax_query_in_and = wp_list_filter( $this->tax_query->queries, array( 'operator' => 'NOT IN' ), 'NOT' ); 2934 2936 2935 2937 $query = reset( $tax_query_in_and ); … … 2946 2948 if ( $this->is_category ) 2947 2949 _make_cat_compat( $this->queried_object ); 2948 2950 } 2949 } elseif ( $this->is_post_type_archive ) {2950 $this->queried_object = get_post_type_object( $this->get('post_type') );2951 2951 } elseif ( $this->is_posts_page ) { 2952 2952 $page_for_posts = get_option('page_for_posts'); 2953 2953 $this->queried_object = & get_page( $page_for_posts );
