Skip to:

Opened 14 years ago

Closed 14 years ago

#2639 closed enhancement (fixed)

[patch] Exclude parameter for bp_has_groups()

Reported by: boonebgorges's profile boonebgorges Owned by:
Milestone: 1.5 Priority: normal
Severity: Version:
Component: Groups Keywords: has-patch needs-testing


This patch adds an exclude parameter for bp_has_groups().

The patch also contains fixes to a couple little bugs that were in the way of testing the main enhancement:

  • some instances of function_exists( 'friends_install' ) have been changed to bp_is_active( 'friends' )
  • BP_Core_User::get_users() was throwing errors when $type = 'alphabetical' because the LEFT JOIN clause for the profile data table was missing

Attachments (2)

2639.patch (11.5 KB) - added by boonebgorges 14 years ago.
2639-2.patch (11.5 KB) - added by boonebgorges 14 years ago.

Download all attachments as: .zip

Change History (4)

14 years ago

#1 @boonebgorges
14 years ago

Oops, realized that I had taken out a line for testing and forgot to readd it. 2nd patch fixes.

#2 @boonebgorges
14 years ago

  • Resolution set to fixed
  • Status changed from new to closed

(In [3371]) Reapplies changes to BP_Groups_Group::get methods that were accidentally reverted in r3300. Adds exclude parameters to groups get methods. Fixes #2639

Note: See TracTickets for help on using tickets.