[wp-trac] [WordPress Trac] #40826: Allow items queried in batch via "slug" to maintain order
WordPress Trac
noreply at wordpress.org
Thu Oct 5 00:36:45 UTC 2017
#40826: Allow items queried in batch via "slug" to maintain order
---------------------------------------------+-------------------------
Reporter: wonderboymusic | Owner: kadamwhite
Type: enhancement | Status: closed
Priority: normal | Milestone: 4.9
Component: REST API | Version: 4.7.4
Severity: normal | Resolution: fixed
Keywords: has-patch has-unit-tests commit | Focuses:
---------------------------------------------+-------------------------
Changes (by kadamwhite):
* status: accepted => closed
* resolution: => fixed
Comment:
In [changeset:"41760"]:
{{{
#!CommitTicketReference repository="" revision="41760"
REST API: Support ordering response collection by listed slugs.
Adds an "include_slug" orderby value for REST API collections to permit
returning a collection filtered by slugs in the same order in which those
slugs are specified.
Previously, the order of slugs provided with the ?slug query parameter had
no effect on the order of the returned records.
Props wonderboymusic, ocean90, boonebgorges.
Fixes #40826.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/40826#comment:16>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list