[buddypress-trac] [BuddyPress Trac] #6334: User queries using 'member_type' return all members when no user matches specified 'member_type'
buddypress-trac
noreply at wordpress.org
Mon Mar 30 18:44:56 UTC 2015
#6334: User queries using 'member_type' return all members when no user matches
specified 'member_type'
---------------------------------+---------------------------
Reporter: boonebgorges | Owner: boonebgorges
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 2.2.2
Component: Component - Members | Version:
Severity: normal | Resolution: fixed
Keywords: |
---------------------------------+---------------------------
Comment (by boonebgorges):
In [changeset:"9663"]:
{{{
#!CommitTicketReference repository="" revision="9663"
Enforce no_results when getting a 0=1 result from the member type tax
query.
When passing a 'member_type' to `BP_User_Query` and no users belong to the
member type, the `WP_Tax_Query` transformation will return a '0 = 1'
clause to
indicate that no results were found. We should respect this result, so
that no
members are returned for this kind of query.
Fixes #6334 for the 2.2 branch.
}}}
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/6334#comment:2>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac
More information about the buddypress-trac
mailing list