Ticket #18536: 18536.post-ancestors.diff
File 18536.post-ancestors.diff, 585 bytes (added by , 12 years ago) |
---|
-
wp-includes/query.php
2673 2673 2674 2674 // Check post status to determine if post should be displayed. 2675 2675 if ( !empty($this->posts) && ($this->is_single || $this->is_page) ) { 2676 $status = get_post_status($this->posts[0] ->ID);2676 $status = get_post_status($this->posts[0]); 2677 2677 $post_status_obj = get_post_status_object($status); 2678 2678 //$type = get_post_type($this->posts[0]); 2679 2679 if ( !$post_status_obj->public ) {