Make WordPress Core

Ticket #35271: 35271.patch

File 35271.patch, 509 bytes (added by dlh, 10 years ago)
  • src/wp-includes/query.php

     
    36443644                                $this->is_attachment = true;
    36453645                        }
    36463646                        $post_status_obj = get_post_status_object($status);
    3647                         //$type = get_post_type($this->posts[0]);
    36483647
    36493648                        // If the post_status was specifically requested, let it pass through.
    36503649                        if ( !$post_status_obj->public && ! in_array( $status, $q_status ) ) {