[wp-trac] [WordPress Trac] #27252: WP_Query's "fields" => "ids" should return an array of integers

WordPress Trac noreply at wordpress.org
Mon Mar 24 18:54:40 UTC 2014


#27252: WP_Query's "fields" => "ids" should return an array of integers
------------------------------------+-----------------------------
 Reporter:  danielbachhuber         |       Owner:  wonderboymusic
     Type:  defect (bug)            |      Status:  closed
 Priority:  normal                  |   Milestone:  3.9
Component:  Query                   |     Version:
 Severity:  normal                  |  Resolution:  fixed
 Keywords:  has-patch dev-feedback  |     Focuses:
------------------------------------+-----------------------------
Changes (by wonderboymusic):

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


Comment:

 In [changeset:"27686"]:
 {{{
 #!CommitTicketReference repository="" revision="27686"
 When using WP_Query's `"fields" => "ids"` (or `"fields" => "id=>parent"`),
 the returned values should be an array of integers, not array of integers
 represented by strings.

 Adds unit tests. All other unit tests pass.

 Props danielbachhuber.
 Fixes #27252.
 }}}

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


More information about the wp-trac mailing list