Skip to:
Content

BuddyPress.org

Opened 14 years ago

Closed 14 years ago

#4690 closed enhancement (fixed)

member groups count don't go through filter

Reported by: magnus78 Owned by:
Priority: normal Milestone: 1.7
Component: Groups Version:
Severity: normal Keywords: has-patch commit
Cc:

Description

When viewing a member page there is a tab like Groups (3).
The number shown can be wrong if one wants the group count filtered, e.g. to hide some special groups.

This is because a slightly incorrect function is called. groups_total_groups_for_user don't go through the filters, whereas bp_get_total_group_count_for_user does - in other respects is should e the same thing.

Attachments (1)

bptrac4690_member_groups_count.patch (670 bytes ) - added by magnus78 14 years ago.
proposed fix

Download all attachments as: .zip

Change History (3)

#1 @DJPaul
14 years ago

  • Component CoreGroups
  • Keywords commit added
  • Milestone Awaiting Review1.7
  • Type defect (bug)enhancement

#2 @djpaul
14 years ago

  • Resolutionfixed
  • Status newclosed

(In [6653]) When adding groups to the main navigation, get the user's total groups count from bp_get_total_group_count_for_user() instead of groups_total_groups_for_user(). Fixes #4690, props magnus78

bp_get_total_group_count_for_user() is a more recent wrapper function for groups_total_groups_for_user() which runs the return value through a filter.

Note: See TracTickets for help on using tickets.