[wp-trac] [WordPress Trac] #27674: WP_Query auto-draft

WordPress Trac noreply at wordpress.org
Sun Apr 6 16:37:25 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:
-------------------------------+------------------------------

Comment (by knutsp):

 I cannot reproduce this problem.

 I created a post record with ID = 513, post_type = property, post_status =
 auto-draft

 {{{
 $q = new WP_Query( 'p=513&post_type=property&post_status=auto-draft' );
 var_dump( $q->found_posts );
 }}}

 Result: int(1)

 I don't know when, or if ever, a post gets post_status auto-draft in core.
 I know there are posts with `post_type = 'revision'` for revisions.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/27674#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list