[wp-trac] [WordPress Trac] #28007: any post_status blocks others
WordPress Trac
noreply at wordpress.org
Thu Apr 24 09:20:21 UTC 2014
#28007: any post_status blocks others
--------------------------+-----------------------------
Reporter: zugort | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Query | Version: 3.8
Severity: normal | Keywords:
Focuses: |
--------------------------+-----------------------------
Using WP_Query with a post_status argument array('any', 'trash') does only
notice the any, so the corresponding SQL statement does look like:
{{{
AND ((wp_posts.post_status <> 'trash' AND wp_posts.post_status <> 'auto-
draft'))
}}}
And not how expected:
{{{
AND (wp_posts.post_status <> 'auto-draft')
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/28007>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list