[wp-trac] [WordPress Trac] #27674: WP_Query auto-draft
WordPress Trac
noreply at wordpress.org
Mon Apr 7 07:09:54 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: 2nd-opinion | Focuses:
--------------------------+------------------------------
Comment (by Philo01):
Thanks for your reply!
That's to bad :( , the cool thing about get_default_post_to_edit is that
these drafts are automatically removed.
If I would set the status to draft, it would possibly result in a bunch of
empty entries which will be visible in the back-end.
What about attachments though? It shows the same results as in the
screencast.
{{{
$attachment = new WP_Query( 'p=1&post_type=attachment&post_status=inherit'
); // 0 results
$attachment = new WP_Query( 'post_type=attachment&post_status=inherit' );
// 10 results
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/27674#comment:10>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list