[wp-trac] [WordPress Trac] #29189: post/comment IN and NOT IN params for WP_Comment_Query
WordPress Trac
noreply at wordpress.org
Tue Aug 12 02:06:43 UTC 2014
#29189: post/comment IN and NOT IN params for WP_Comment_Query
--------------------------+-----------------------------
Reporter: boonebgorges | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Comments | Version:
Severity: normal | Keywords:
Focuses: |
--------------------------+-----------------------------
WP_Comment_Query would be much more useful if it natively supported the
following parameters: `'post_id__in'`, `'post_id__not_in'`,
`'comment_id__in'`, `'comment_id__not_in'`. (One possible use case: a
plugin that hides certain comments based on user permissions.)
The attached patch is a simple implementation of these four parameters,
with unit tests.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/29189>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list