mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-14 09:34:41 +00:00
Cast term_id to int for queried_object_id. props wojtek.szkutnik, fixes #14590.
git-svn-id: https://develop.svn.wordpress.org/trunk@16542 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user