[wp-trac] [WordPress Trac] #13031: Latest nightly, slight bug in query.php when using post_status = 'any'

WordPress Trac wp-trac at lists.automattic.com
Sat Apr 17 10:29:22 UTC 2010


#13031: Latest nightly, slight bug in query.php when using post_status = 'any'
--------------------------+-------------------------------------------------
 Reporter:  aesqe         |       Owner:  ryan     
     Type:  defect (bug)  |      Status:  reviewing
 Priority:  normal        |   Milestone:  3.0      
Component:  Query         |     Version:  3.0      
 Severity:  normal        |    Keywords:           
--------------------------+-------------------------------------------------
Changes (by dd32):

  * status:  new => reviewing


Comment:

 This would've been caused by [14086] Register 'inherit' as a post status.
 Check the parent post status when commenting on attachments.

 Assigning to ryan for review since it was his commit. However, I'll commit
 what I believe should fix it.

 {{{array('exclude_from_search' => true)}}} should be correct, The
 resulting SQL is:
 {{{
 (wp_posts.post_status <> 'trash' AND wp_posts.post_status <> 'auto-draft'
 AND wp_posts.post_status <> 'inherit')
 }}}

 Those post stati should be excluded by default, except for inherit.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/13031#comment:2>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list