| 1 | Index: wp-includes/query.php |
|---|
| 2 | =================================================================== |
|---|
| 3 | --- wp-includes/query.php (revision 19802) |
|---|
| 4 | +++ wp-includes/query.php (working copy) |
|---|
| 5 | @@ -3023,9 +3023,8 @@ |
|---|
| 6 | if ( empty( $post_types ) || !$this->is_post_type_archive ) |
|---|
| 7 | return (bool) $this->is_post_type_archive; |
|---|
| 8 | |
|---|
| 9 | - $post_type_object = $this->get_queried_object(); |
|---|
| 10 | - |
|---|
| 11 | - return in_array( $post_type_object->name, (array) $post_types ); |
|---|
| 12 | + $queried_post_types = (array) get_query_var( 'post_type' ); |
|---|
| 13 | + return array_intersect( (array) $post_types, $queried_post_types ); |
|---|
| 14 | } |
|---|
| 15 | |
|---|
| 16 | /** |
|---|