Ticket #16347: 16347.2.diff
| File 16347.2.diff, 596 bytes (added by blt4, 2 years ago) |
|---|
-
wp-includes/query.php
2966 2966 if ( empty( $post_types ) || !$this->is_post_type_archive ) 2967 2967 return (bool) $this->is_post_type_archive; 2968 2968 2969 if ( ! isset( $this->posts[0] ) ) 2970 return false; 2969 $post_type_object = $this->get_queried_object(); 2971 2970 2972 $post = $this->posts[0]; 2973 2974 return in_array( $post->post_type, (array) $post_types ); 2971 return in_array( $post_type_object->name, (array) $post_types ); 2975 2972 } 2976 2973 2977 2974 /**
