[buddypress-trac] [BuddyPress Trac] #7530: Fetching of ALL users from bp_friends_prime_mentions_results() for non logged in users

buddypress-trac noreply at wordpress.org
Tue May 30 12:42:50 UTC 2017


#7530: Fetching of ALL users from bp_friends_prime_mentions_results() for non
logged in users
-----------------------------------+------------------------------
 Reporter:  dsar                   |       Owner:
     Type:  defect (bug)           |      Status:  new
 Priority:  normal                 |   Milestone:  Awaiting Review
Component:  (not sure)             |     Version:  2.8.2
 Severity:  major                  |  Resolution:
 Keywords:  2nd-opinion has-patch  |
-----------------------------------+------------------------------

Comment (by dsar):

 Hi @bhargavbhandari90,

 That's even better, thank you!

 What do you think about my suggestion for changing of how BP_User_Query
 class works? I really think this is a bug as well, as documentation
 states:

 user_id (optional)
 Pass a single numeric user id to limit results to friends of that user.
 Requires the Friends component.
 Default value: 0

 which doesn't really happen if passed user_id is 0. In that case, all
 users are returned.

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


More information about the buddypress-trac mailing list