[wp-trac] [WordPress Trac] #39055: REST API: order is ignored when orderby is set to include
WordPress Trac
noreply at wordpress.org
Sun Feb 12 05:28:09 UTC 2017
#39055: REST API: order is ignored when orderby is set to include
-------------------------------------------------+-------------------------
Reporter: joshlevinson | Owner: jnylen0
Type: enhancement | Status: accepted
Priority: normal | Milestone: 4.8
Component: Query | Version:
Severity: normal | Resolution:
Keywords: has-patch has-unit-tests needs- | Focuses:
refresh |
-------------------------------------------------+-------------------------
Comment (by fibonaccina):
I was sure I was hallucinating. You're right, the patch was still applied.
After removing the patch and reviewing the test results, they are as you
concluded: (1) no order, and {{{order=asc}}} return posts in the same
order as the input array, (2) {{{order=desc}}} also returns results in the
same order (though it shouldn't), and we'll fix that with documentation
instead of a code change. Latest patch is
{{{39055_tests_current_behavior_refresh_take2.diff}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/39055#comment:18>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list