[wp-trac] [WordPress Trac] #38985: REST API: Some orderby parameters are broken
WordPress Trac
noreply at wordpress.org
Thu Dec 1 20:55:34 UTC 2016
#38985: REST API: Some orderby parameters are broken
--------------------------------------+-----------------------
Reporter: jnylen0 | Owner: jnylen0
Type: defect (bug) | Status: assigned
Priority: normal | Milestone: 4.7
Component: REST API | Version:
Severity: normal | Resolution:
Keywords: has-unit-tests has-patch | Focuses:
--------------------------------------+-----------------------
Changes (by jnylen0):
* keywords: has-unit-tests needs-refresh has-patch => has-unit-tests has-
patch
Comment:
Option 3: reuse [https://github.com/WordPress/WordPress/blob/88a7218/wp-
includes/rest-api/class-wp-rest-request.php#L880-L882 an existing error
message] for 4.7 and clean it up in 4.8.
Done in [attachment:38985.3.diff]; also renamed `$orderby_possibles` →
`$orderby_mappings` to match `$parameter_mappings` in the same file.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/38985#comment:11>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list