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

WordPress Trac noreply at wordpress.org
Mon Apr 7 08:33:58 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):

 I know '''$query->found_posts;''' returns 1, but if you take a look at the
 posts array you will see that this is empty.

 {{{
 public 'posts' =>
     array (size=0)
       empty
 public 'post_count' => int 0
 }}}

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


More information about the wp-trac mailing list