[wp-trac] [WordPress Trac] #45800: Add short circuits for WP_Comment_Query
WordPress Trac
noreply at wordpress.org
Tue Sep 10 18:41:14 UTC 2019
#45800: Add short circuits for WP_Comment_Query
-------------------------------------------------+-------------------------
Reporter: spacedmonkey | Owner:
| adamsilverstein
Type: enhancement | Status: closed
Priority: normal | Milestone: 5.3
Component: Comments | Version: 3.1
Severity: normal | Resolution: fixed
Keywords: has-patch has-unit-tests needs-dev- | Focuses:
note commit |
-------------------------------------------------+-------------------------
Changes (by adamsilverstein):
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"46086" 46086]:
{{{
#!CommitTicketReference repository="" revision="46086"
Comments: add a new `comments_pre_query` filter to short circuit
WP_Comment_Query 'get_comments' queries.
Return a non-null value to bypass WordPress's default comment queries.
Props felipeelia, spacedmonkey.
Fixes #45800.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/45800#comment:34>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list