[wp-trac] [WordPress Trac] #38693: REST API: Audit `orderby` params and add any others

WordPress Trac noreply at wordpress.org
Thu Dec 1 16:48:05 UTC 2016

#38693: REST API: Audit `orderby` params and add any others
 Reporter:  jnylen0                               |       Owner:
     Type:  enhancement                           |      Status:  new
 Priority:  normal                                |   Milestone:  4.7
Component:  REST API                              |     Version:  trunk
 Severity:  normal                                |  Resolution:
 Keywords:  has-patch has-unit-tests 2nd-opinion  |     Focuses:

Comment (by joehoyle):

 > What about adding a filter for the orderby enum params so sites can
 expand the supported orderby values for 4.7, and properly fixing in 4.8?

 Given the collection params are filterable, i don't think there's any
 benefit to adding 2-3 values to the enum that won't actually do anything.
 A plugin that wants to add support can do so via the filter.

 > This is not an enhancement - this is a regression from previously
 established behavior that at least 3 different people have asked about.

 I don't agree this isn't an enhancement, we haven't had these order by
 values for some time. IMO now is the time to punt this to 4.8, it's fine
 that we add it then.

Ticket URL: <https://core.trac.wordpress.org/ticket/38693#comment:21>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform

More information about the wp-trac mailing list