[wp-trac] [WordPress Trac] #29424: Query argument 'orderby' makes duplicated parameters possible; does not support some available columns

WordPress Trac noreply at wordpress.org
Tue Oct 24 01:11:51 UTC 2017


#29424: Query argument 'orderby' makes duplicated parameters possible; does not
support some available columns
------------------------------------------+-----------------------------
 Reporter:  ChriCo                        |       Owner:
     Type:  enhancement                   |      Status:  new
 Priority:  normal                        |   Milestone:  Future Release
Component:  Query                         |     Version:  2.5
 Severity:  normal                        |  Resolution:
 Keywords:  needs-patch needs-unit-tests  |     Focuses:
------------------------------------------+-----------------------------

Comment (by birgire):

 Regarding the missing orderby fields, [attachment:29424.3.diff] adds
 support for:

  - {{{post_date_gmt}}}
  - {{{date_gmt}}}
  - {{{post_modified_gmt}}}
  - {{{modified_gmt}}}
  - {{{post_status}}}
  - {{{comment_status}}}
  - {{{ping_status}}}
  - {{{post_mime_type}}}
  - {{{mime_type}}}

 with a test for each one.

 Note that I skipped {{{status}}} here, as I think it wouldn't be clear
 what was being referred to: {{{post_status}}}, {{{comment_status}}} or
 {{{ping_status}}}.

 ps: I also searched for any other ticket on this, but couldn't find it.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/29424#comment:9>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list