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

WordPress Trac noreply at wordpress.org
Sun Mar 2 02:25:26 UTC 2014


#27252: WP_Query's "fields" => "ids" should return an array of integers
-----------------------------+------------------------------------
 Reporter:  danielbachhuber  |      Owner:
     Type:  defect (bug)     |     Status:  new
 Priority:  normal           |  Milestone:  3.9
Component:  Query            |    Version:
 Severity:  normal           |   Keywords:  has-patch dev-feedback
  Focuses:                   |
-----------------------------+------------------------------------
 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.

 The current, latter behavior causes a subsequent WP_Query with `post__in`
 to fail because it's being passed an array of strings.

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


More information about the wp-trac mailing list