[wp-trac] [WordPress Trac] #31194: WP_Query's 'fields' => 'ids' still returns an array of strings

WordPress Trac noreply at wordpress.org
Tue Feb 3 02:28:55 UTC 2015


#31194: WP_Query's 'fields' => 'ids' still returns an array of strings
------------------------------+-----------------------------
 Reporter:  SergeyBiryukov    |       Owner:  SergeyBiryukov
     Type:  defect (bug)      |      Status:  closed
 Priority:  normal            |   Milestone:  4.2
Component:  Query             |     Version:  3.9
 Severity:  normal            |  Resolution:  fixed
 Keywords:  has-patch commit  |     Focuses:
------------------------------+-----------------------------
Changes (by SergeyBiryukov):

 * owner:   => SergeyBiryukov
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"31324"]:
 {{{
 #!CommitTicketReference repository="" revision="31324"
 When using WP_Query's `'fields' => 'ids'` (or `'fields' => 'id=>parent'`),
 make sure the returned result is always an array of integers.

 fixes #31194. see #27252.
 }}}

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


More information about the wp-trac mailing list