Ticket #14590: 14590.diff
| File 14590.diff, 541 bytes (added by wojtek.szkutnik, 3 years ago) |
|---|
-
wp-includes/query.php
2736 2739 return NULL; 2737 2740 $term = $term[0]; 2738 2741 $this->queried_object = $term; 2739 $this->queried_object_id = $term->term_id;2742 $this->queried_object_id = (int) $term->term_id; 2740 2743 } elseif ( $this->is_posts_page ) { 2741 2744 $page_for_posts = get_option('page_for_posts'); 2742 2745 $this->queried_object = & get_page( $page_for_posts );
