Skip to:
Content

BuddyPress.org

Changeset 12634


Ignore:
Timestamp:
04/26/2020 03:24:12 AM (5 years ago)
Author:
imath
Message:

BP Nouveau: make sure to format the total groups count once only

Props etatus

Fixes #8283

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-templates/bp-nouveau/includes/groups/loader.php

    r12192 r12634  
    44 *
    55 * @since 3.0.0
    6  * @version 3.0.0
     6 * @version 6.0.0
    77 */
    88
     
    9494     *
    9595     * @since 3.0.0
     96     * @since 6.0.0 Removes the BP Core number formatting filter on total groups count.
    9697     */
    9798    protected function setup_filters() {
     
    130131            add_filter( 'bp_settings_admin_nav', 'bp_nouveau_groups_invites_restriction_admin_nav', 10, 1 );
    131132        }
     133
     134        // The number formatting is done into the `bp_nouveau_nav_count()` template tag.
     135        remove_filter( 'bp_get_total_group_count', 'bp_core_number_format' );
    132136    }
    133137
Note: See TracChangeset for help on using the changeset viewer.