Make WordPress Core

Changeset 16542


Ignore:
Timestamp:
11/23/2010 12:32:19 AM (14 years ago)
Author:
nacin
Message:

Cast term_id to int for queried_object_id. props wojtek.szkutnik, fixes #14590.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/query.php

    r16538 r16542  
    26742674            if ( $term && ! is_wp_error($term) )  {
    26752675                $this->queried_object = $term;
    2676                 $this->queried_object_id = $term->term_id;
     2676                $this->queried_object_id = (int) $term->term_id;
    26772677            }
    26782678        } elseif ( $this->is_posts_page ) {
Note: See TracChangeset for help on using the changeset viewer.