[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:41:45 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:                       |
---------------------------------+---------------------------
Changes (by boonebgorges):

 * owner:   => boonebgorges
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"9662"]:
 {{{
 #!CommitTicketReference repository="" revision="9662"
 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.
 }}}

--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/6334#comment:1>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list