Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
06/16/2020 05:27:38 AM (4 years ago)
Author:
imath
Message:

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

This is a follow up of [12619] & [12634] to apply the fix to the "my blogs", "my notifications", "my groups" and "my friends" count.

props etatus

Fixes #8311 (Trunk)

File:
1 edited

Legend:

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

    r12192 r12670  
    44 *
    55 * @since 3.0.0
    6  * @version 3.0.0
     6 * @version 6.1.0
    77 */
    88
     
    8888            add_filter( 'bp_button_' . $button, 'bp_nouveau_ajax_button', 10, 5 );
    8989        }
     90
     91        // The number formatting is done into the `bp_nouveau_nav_count()` template tag.
     92        remove_filter( 'friends_get_total_friend_count', 'bp_core_number_format' );
     93        remove_filter( 'bp_get_total_friend_count',      'bp_core_number_format' );
    9094    }
    9195
Note: See TracChangeset for help on using the changeset viewer.