[wp-trac] [WordPress Trac] #27674: WP_Query auto-draft
WordPress Trac
noreply at wordpress.org
Sun Apr 6 15:17:47 UTC 2014
#27674: WP_Query auto-draft
-------------------------------+------------------------------
Reporter: Philo01 | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Query | Version: 3.8.1
Severity: normal | Resolution:
Keywords: reporter-feedback | Focuses:
-------------------------------+------------------------------
Changes (by knutsp):
* keywords: => reporter-feedback
Comment:
In your first example, is there a post with ID = 1 and post_status =
'auto-draft'?
In your second example, is there a post with ID = 1 and post_type =
'attachment'?
When using `p=1` only this post is searched for. If you want to find auto-
drafts or attachments belonging to post with ID 1 you will have to set
`post_parent=1`.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/27674#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list