From 53a2e0667ea6424ff1165a6c2a7d5b25691688c6 Mon Sep 17 00:00:00 2001 From: nacin Date: Tue, 23 Nov 2010 00:32:19 +0000 Subject: [PATCH] Cast term_id to int for queried_object_id. props wojtek.szkutnik, fixes #14590. git-svn-id: http://svn.automattic.com/wordpress/trunk@16542 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/query.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/query.php b/wp-includes/query.php index f52919bfc..9bf4faa3a 100644 --- a/wp-includes/query.php +++ b/wp-includes/query.php @@ -2673,7 +2673,7 @@ class WP_Query { if ( $term && ! is_wp_error($term) ) { $this->queried_object = $term; - $this->queried_object_id = $term->term_id; + $this->queried_object_id = (int) $term->term_id; } } elseif ( $this->is_posts_page ) { $page_for_posts = get_option('page_for_posts');