Changeset 31458 for trunk/src/wp-includes/query.php
- Timestamp:
- 02/14/2015 02:08:46 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/query.php
r31366 r31458 4078 4078 $post_obj = $this->get_queried_object(); 4079 4079 4080 if ( in_array( $post_obj->ID, $attachment ) ) {4080 if ( in_array( (string) $post_obj->ID, $attachment ) ) { 4081 4081 return true; 4082 4082 } elseif ( in_array( $post_obj->post_title, $attachment ) ) { … … 4110 4110 $author = (array) $author; 4111 4111 4112 if ( in_array( $author_obj->ID, $author ) )4112 if ( in_array( (string) $author_obj->ID, $author ) ) 4113 4113 return true; 4114 4114 elseif ( in_array( $author_obj->nickname, $author ) ) … … 4142 4142 $category = (array) $category; 4143 4143 4144 if ( in_array( $cat_obj->term_id, $category ) )4144 if ( in_array( (string) $cat_obj->term_id, $category ) ) 4145 4145 return true; 4146 4146 elseif ( in_array( $cat_obj->name, $category ) ) … … 4174 4174 $tag = (array) $tag; 4175 4175 4176 if ( in_array( $tag_obj->term_id, $tag ) )4176 if ( in_array( (string) $tag_obj->term_id, $tag ) ) 4177 4177 return true; 4178 4178 elseif ( in_array( $tag_obj->name, $tag ) ) … … 4371 4371 $page = (array) $page; 4372 4372 4373 if ( in_array( $page_obj->ID, $page ) ) {4373 if ( in_array( (string) $page_obj->ID, $page ) ) { 4374 4374 return true; 4375 4375 } elseif ( in_array( $page_obj->post_title, $page ) ) { … … 4464 4464 $post = (array) $post; 4465 4465 4466 if ( in_array( $post_obj->ID, $post ) ) {4466 if ( in_array( (string) $post_obj->ID, $post ) ) { 4467 4467 return true; 4468 4468 } elseif ( in_array( $post_obj->post_title, $post ) ) {
Note: See TracChangeset
for help on using the changeset viewer.