[wp-trac] [WordPress Trac] #29885: Add author__not_in for comment queries
WordPress Trac
noreply at wordpress.org
Wed Oct 8 12:53:11 UTC 2014
#29885: Add author__not_in for comment queries
--------------------------------------+---------------------------
Reporter: chriscct7 | Owner: boonebgorges
Type: feature request | Status: accepted
Priority: normal | Milestone: 4.1
Component: Query | Version:
Severity: normal | Resolution:
Keywords: needs-patch dev-feedback | Focuses:
--------------------------------------+---------------------------
Comment (by chriscct7):
Its highly unlikely someone would be using both one of those and not_in.
What we could do to get around this is if the parameter
`comment_author__in` isset, then we use that parameter and ignore the
email and the id one. If its not then we use what we already have. This
would let a person using Comments Query to write a query where if its on
WordPress 4.1, it would use the more powerful single param, else if its on
the old version fallback (complete backwards compatibility) to the old
params.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/29885#comment:13>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list