[wp-trac] [WordPress Trac] #40157: Batch query for media returns items in DESC order instead of post__in

WordPress Trac noreply at wordpress.org
Wed Mar 15 04:08:55 UTC 2017


#40157: Batch query for media returns items in DESC order instead of post__in
----------------------------+-------------------------
 Reporter:  wonderboymusic  |      Owner:
     Type:  defect (bug)    |     Status:  new
 Priority:  normal          |  Milestone:  4.7.4
Component:  REST API        |    Version:  4.7
 Severity:  normal          |   Keywords:  needs-patch
  Focuses:                  |
----------------------------+-------------------------
 A query like so:
 https://highforthis.com/wp-
 json/wp/v2/media?include[]=2719&include[]=2724&include[]=2728

 Returns the items in reverse order:
 2728
 2724
 2719

 `include` is the batch mechanism, it should order by `post__in`

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


More information about the wp-trac mailing list