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

WordPress Trac noreply at wordpress.org
Mon Apr 7 06:20:22 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:  close         |     Focuses:
--------------------------+------------------------------
Changes (by knutsp):

 * keywords:  reporter-feedback => close


Comment:

 It seems you expect WP_Query to return a post object. I would have used
 `get_posts()` to return an array of posts. If you need more help, please
 try try the support forums[http://wordpress.org/support/].

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


More information about the wp-trac mailing list