[buddypress-trac] [BuddyPress] #4066: Recently Active Members Sidebar Widget Bug

buddypress-trac at lists.automattic.com buddypress-trac at lists.automattic.com
Sun Mar 11 16:39:45 UTC 2012


#4066: Recently Active Members Sidebar Widget Bug
----------------------------+---------------------
 Reporter:  slickremix.com  |       Owner:
     Type:  defect (bug)    |      Status:  closed
 Priority:  normal          |   Milestone:  1.6
Component:  Core            |     Version:  1.5.4
 Severity:  minor           |  Resolution:  fixed
 Keywords:                  |
----------------------------+---------------------
Changes (by boonebgorges):

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


Comment:

 (In [5906]) Reworks some functions around the querying of friendship
 requests:
 - Refactors bp_get_friendship_requests() so that it accepts a manual
 user_id parameter, and so that it falls back on the displayed_user rather
 than the loggedin_user (for future administrative tasks)
 - Reconfigures the return value of bp_get_friendship_requests() so that a
 0 is returned when there are no pending requests, to ensure that a non-
 false value is passed to bp_has_members() when viewing the Requests page
 of a user with no pending requests
 - Removes the hardcoded 'return false' from bp_has_members() that would
 occur when an empty 'include' parameter was passed on the Requests page,
 so that sidebar widgets using bp_has_members() would work properly
 - Reconfigures the 'include' logic in BP_Core_User::get_users() so that a
 value of 0 or '0' results in a false result, while continuing to respect
 legacy behavior of the default false value
 - Fixes #4066

-- 
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/4066#comment:3>
BuddyPress <http://buddypress.org/>
BuddyPress


More information about the buddypress-trac mailing list