Skip to:
Content

BuddyPress.org

Changeset 6653


Ignore:
Timestamp:
12/21/2012 11:33:15 PM (11 years ago)
Author:
djpaul
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-groups/bp-groups-loader.php

    r6651 r6653  
    344344        // Add 'Groups' to the main navigation
    345345        $main_nav = array(
    346             'name'                => sprintf( __( 'Groups <span>%d</span>', 'buddypress' ), groups_total_groups_for_user() ),
     346            'name'                => sprintf( __( 'Groups <span>%d</span>', 'buddypress' ), bp_get_total_group_count_for_user() ),
    347347            'slug'                => $this->slug,
    348348            'position'            => 70,
Note: See TracChangeset for help on using the changeset viewer.