[wp-trac] [WordPress Trac] #29885: Add author__not_in for comment queries

WordPress Trac noreply at wordpress.org
Wed Oct 8 12:47:27 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      |     Focuses:
-----------------------------+---------------------------

Comment (by chriscct7):

 The problem with `author_email` is I want to do exactly opposite of what
 it does. For example, your patch adds `post_author__not_in` which, if
 passed a single int id, does the exact opposite of using `post_author`.
 I'm looking for the ability to get comments that are not written by a
 specific person, so we'd probably need a 'comment_author__in' and
 'comment_author__not_in'.

 Does that make sense?

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


More information about the wp-trac mailing list