[wp-trac] [WordPress Trac] #29902: Allow no ORDER BY for comments in WP_Comment_Query
WordPress Trac
noreply at wordpress.org
Fri Oct 24 02:50:25 UTC 2014
#29902: Allow no ORDER BY for comments in WP_Comment_Query
-------------------------+---------------------------
Reporter: psycleuk | Owner: boonebgorges
Type: enhancement | Status: closed
Priority: normal | Milestone: 4.1
Component: Comments | Version: 4.0
Severity: normal | Resolution: fixed
Keywords: has-patch | Focuses: performance
-------------------------+---------------------------
Changes (by boonebgorges):
* owner: => boonebgorges
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"30004"]:
{{{
#!CommitTicketReference repository="" revision="30004"
Allow ORDER BY in `WP_Comment_Query::query()` to be disabled.
Disable ORDER BY by passing boolean false, an empty array, or the string
'none' to the 'orderby parameter. This mirrors the behavior of `WP_Query`.
Props psycleuk.
Fixes #29902.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/29902#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list