[buddypress-trac] [BuddyPress Trac] #6418: Introduce functionality to query members by member_type where member_type NOT IN
buddypress-trac
noreply at wordpress.org
Sun Jun 28 11:45:13 UTC 2015
#6418: Introduce functionality to query members by member_type where member_type
NOT IN
---------------------------------+---------------------------
Reporter: lakrisgubben | Owner: boonebgorges
Type: enhancement | Status: assigned
Priority: normal | Milestone: 2.4
Component: Component - Members | Version: 2.2.3
Severity: normal | Resolution:
Keywords: commit has-patch |
---------------------------------+---------------------------
Changes (by DJPaul):
* keywords: => commit has-patch
* owner: => boonebgorges
* status: new => assigned
Comment:
@boonegorges I'm at WCEU and I've just discussed this ticket with
@lakrisgubben. I agree that it's a very nice patch, and it's been well
written.
After some consideration, I agree with the suggestion that using
`member_type__not_in => bp_get_member_types()` to query for members
without any member type is the best approach to resolve that problem. I
think it just makes more sense to parse the requirement this way rather
than rely on passing null (which strikes me as rather non-obvious). Fully
support committing the latest version of the patch, but wanted to let you
do that to give you a chance to communicate if you have a strong reason
for preferring to do exclusion via the `__in` parameter.
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/6418#comment:8>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac
More information about the buddypress-trac
mailing list