diff --git a/wp-includes/query.php b/wp-includes/query.php index 27d8c26fa4..f076533231 100644 --- a/wp-includes/query.php +++ b/wp-includes/query.php @@ -4077,7 +4077,7 @@ class WP_Query { $post_obj = $this->get_queried_object(); - if ( in_array( $post_obj->ID, $attachment ) ) { + if ( in_array( (string) $post_obj->ID, $attachment ) ) { return true; } elseif ( in_array( $post_obj->post_title, $attachment ) ) { return true; @@ -4109,7 +4109,7 @@ class WP_Query { $author = (array) $author; - if ( in_array( $author_obj->ID, $author ) ) + if ( in_array( (string) $author_obj->ID, $author ) ) return true; elseif ( in_array( $author_obj->nickname, $author ) ) return true; @@ -4141,7 +4141,7 @@ class WP_Query { $category = (array) $category; - if ( in_array( $cat_obj->term_id, $category ) ) + if ( in_array( (string) $cat_obj->term_id, $category ) ) return true; elseif ( in_array( $cat_obj->name, $category ) ) return true; @@ -4173,7 +4173,7 @@ class WP_Query { $tag = (array) $tag; - if ( in_array( $tag_obj->term_id, $tag ) ) + if ( in_array( (string) $tag_obj->term_id, $tag ) ) return true; elseif ( in_array( $tag_obj->name, $tag ) ) return true; @@ -4370,7 +4370,7 @@ class WP_Query { $page = (array) $page; - if ( in_array( $page_obj->ID, $page ) ) { + if ( in_array( (string) $page_obj->ID, $page ) ) { return true; } elseif ( in_array( $page_obj->post_title, $page ) ) { return true; @@ -4463,7 +4463,7 @@ class WP_Query { $post = (array) $post; - if ( in_array( $post_obj->ID, $post ) ) { + if ( in_array( (string) $post_obj->ID, $post ) ) { return true; } elseif ( in_array( $post_obj->post_title, $post ) ) { return true; diff --git a/wp-includes/version.php b/wp-includes/version.php index 9cac824330..6792f1c8db 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.2-alpha-31457'; +$wp_version = '4.2-alpha-31458'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.