diff --git a/wp-includes/query.php b/wp-includes/query.php
index 1ac8ee0..3a4e7c5 100644
a
|
b
|
public function get_posts() { |
3497 | 3497 | $status = get_post_status($this->posts[0]); |
3498 | 3498 | $post_status_obj = get_post_status_object($status); |
3499 | 3499 | //$type = get_post_type($this->posts[0]); |
3500 | | if ( !$post_status_obj->public ) { |
| 3500 | if ( ! $post_status_obj->public && ! in_array( $status, $q_status ) ) { |
3501 | 3501 | if ( ! is_user_logged_in() ) { |
3502 | 3502 | // User must be logged in to view unpublished posts. |
3503 | 3503 | $this->posts = array(); |