[wp-trac] [WordPress Trac] #27674: WP_Query auto-draft
WordPress Trac
noreply at wordpress.org
Mon Apr 7 08:31:40 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 knutsp):
I run
{{{
SELECT * FROM `wp_posts` WHERE `post_type` = 'attachment' AND
`post_status` ='inherit'
}}}
and get 32 results. The first ID = 72
I run
{{{
$query = new WP_Query( 'p=72&post_type=attachment&post_status=inherit' );
echo $query->found_posts;
}}}
and it gives me 1 result as expected.
Have you really tried this with no active plugins and a clean default
theme?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/27674#comment:11>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list