WordPress.org

Make WordPress Core

Ticket #14590: 14590.diff

File 14590.diff, 541 bytes (added by wojtek.szkutnik, 5 years ago)
  • wp-includes/query.php

     
    27362739                                return NULL; 
    27372740                        $term = $term[0]; 
    27382741                        $this->queried_object = $term; 
    2739                         $this->queried_object_id = $term->term_id; 
     2742                        $this->queried_object_id = (int) $term->term_id; 
    27402743                } elseif ( $this->is_posts_page ) { 
    27412744                        $page_for_posts = get_option('page_for_posts'); 
    27422745                        $this->queried_object = & get_page( $page_for_posts );