Skip to:
Content

BuddyPress.org

Changeset 12619


Ignore:
Timestamp:
04/15/2020 12:59:00 AM (4 years ago)
Author:
imath
Message:

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

Props twmcmahan

Fixes #8269

File:
1 edited

Legend:

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

    r12082 r12619  
    44 *
    55 * @since 3.0.0
    6  * @version 3.0.0
     6 * @version 6.0.0
    77 */
    88
     
    8484     *
    8585     * @since 3.0.0
     86     * @since 6.0.0 Removes the BP Core number formatting filter on total members count.
    8687     */
    8788    protected function setup_filters() {
    8889        // Add the default-front to User's front hierarchy if user enabled it (Enabled by default).
    8990        add_filter( 'bp_displayed_user_get_front_template', 'bp_nouveau_member_reset_front_template', 10, 1 );
     91
     92        // The number formatting is done into the `bp_nouveau_nav_count()` template tag.
     93        remove_filter( 'bp_get_total_member_count', 'bp_core_number_format' );
    9094    }
    9195
Note: See TracChangeset for help on using the changeset viewer.