[wp-trac] [WordPress Trac] #39055: REST API: order is ignored when orderby is set to include
WordPress Trac
noreply at wordpress.org
Sun Dec 4 17:41:55 UTC 2016
#39055: REST API: order is ignored when orderby is set to include
--------------------------+------------------------------
Reporter: joshlevinson | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Query | Version:
Severity: normal | Resolution:
Keywords: dev-feedback | Focuses:
--------------------------+------------------------------
Changes (by swissspidy):
* keywords: => dev-feedback
* type: defect (bug) => enhancement
* version: trunk =>
* component: REST API => Query
Comment:
> Note that this behavior was brought up in testing the REST API, but it
is not specific to the API. The current behavior is present in `WP_Query`,
so if it is deemed that this behavior should change, it should probably be
changed in `WP_Query` rather than the API.
Agree. The `orderby` param supports `post__in`, `post_parent__in` and
`post_name__in`, so it would need to be supported for all of these.
I'm not sure if it should be supported, as it could be seen as a minor BC
break. The alternative would be improved documentation.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/39055#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list