Make WordPress Core

Ticket #18536: 18536.post-ancestors.diff

File 18536.post-ancestors.diff, 585 bytes (added by duck_, 12 years ago)
  • wp-includes/query.php

     
    26732673
    26742674                // Check post status to determine if post should be displayed.
    26752675                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]);
    26772677                        $post_status_obj = get_post_status_object($status);
    26782678                        //$type = get_post_type($this->posts[0]);
    26792679                        if ( !$post_status_obj->public ) {