Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
06/16/2020 05:24:41 AM (5 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

See #8311 (Branch 6.0)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/6.0/src/bp-templates/bp-nouveau/includes/notifications/loader.php

    r12082 r12669  
    44 *
    55 * @since 3.0.0
    6  * @version 3.0.0
     6 * @version 6.1.0
    77 */
    88
     
    8888        add_filter( 'bp_get_the_notification_mark_read_link', 'bp_nouveau_notifications_mark_read_link', 10, 1 );
    8989        add_filter( 'bp_get_the_notification_delete_link', 'bp_nouveau_notifications_delete_link', 10, 1 );
     90
     91        // The number formatting is done into the `bp_nouveau_nav_count()` template tag.
     92        remove_filter( 'bp_notifications_get_total_notification_count', 'bp_core_number_format' );
    9093    }
    9194}
Note: See TracChangeset for help on using the changeset viewer.