[wp-trac] [WordPress Trac] #39055: REST API: order is ignored when orderby is set to include
WordPress Trac
noreply at wordpress.org
Tue Mar 7 05:26:52 UTC 2017
#39055: REST API: order is ignored when orderby is set to include
--------------------------------------+----------------------
Reporter: joshlevinson | Owner: jnylen0
Type: enhancement | Status: closed
Priority: normal | Milestone:
Component: Query | Version:
Severity: normal | Resolution: wontfix
Keywords: has-patch has-unit-tests | Focuses:
--------------------------------------+----------------------
Comment (by jnylen0):
In [changeset:"40237"]:
{{{
#!CommitTicketReference repository="" revision="40237"
WP_Query: Add missing tests for combinations of `orderby` and include
parameters.
This commit adds some missing test cases for combinations of `orderby` and
other parameters (`post_parent__in` and `post_name__in`).
Followup to [40056] for `orderby` and `post__in`.
The interaction of these parameters is perhaps counterintuitive because
`orderby` does not affect the returned results. This is overall probably
the best design, and it's now better tested and documented.
Props fibonaccina.
See #39055.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/39055#comment:23>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list