[buddypress-trac] [BuddyPress] #4938: Logic for friend request queries in BP_User_Query

buddypress-trac noreply at wordpress.org
Tue Apr 16 16:23:21 UTC 2013


#4938: Logic for friend request queries in BP_User_Query
--------------------------+-----------------------------
 Reporter:  dontdream     |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Core          |    Version:  1.7
 Severity:  normal        |   Keywords:
--------------------------+-----------------------------
 The code in BP_User_Query prevents plugins from limiting (with the
 'include' array) generic friend request queries.

 BP_User_Query offers the 'include' array to limit results to a set of
 users, and the 'user_id' value to limit results to friends of the given
 user_id. In my opinion both these limits should be allowed to operate
 together.

 I suggest removing the tests for (empty( $include )) on lines 302 and 310
 of 'bp-core-classes.php'.

-- 
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/4938>
BuddyPress <http://buddypress.org/>
BuddyPress


More information about the buddypress-trac mailing list