Skip to:
Content

BuddyPress.org

Ticket #4690: bptrac4690_member_groups_count.patch

File bptrac4690_member_groups_count.patch, 670 bytes (added by magnus78, 11 years ago)

proposed fix

  • bp-groups/bp-groups-loader.php

     
    339339
    340340                // Add 'Groups' to the main navigation
    341341                $main_nav = array(
    342                         'name'                => sprintf( __( 'Groups <span>%d</span>', 'buddypress' ), groups_total_groups_for_user() ),
     342                        'name'                => sprintf( __( 'Groups <span>%d</span>', 'buddypress' ), bp_get_total_group_count_for_user() ),
    343343                        'slug'                => $this->slug,
    344344                        'position'            => 70,
    345345                        'screen_function'     => 'groups_screen_my_groups',