Ticket #35271: 35271.patch
File 35271.patch, 509 bytes (added by , 8 years ago) |
---|
-
src/wp-includes/query.php
3644 3644 $this->is_attachment = true; 3645 3645 } 3646 3646 $post_status_obj = get_post_status_object($status); 3647 //$type = get_post_type($this->posts[0]);3648 3647 3649 3648 // If the post_status was specifically requested, let it pass through. 3650 3649 if ( !$post_status_obj->public && ! in_array( $status, $q_status ) ) {