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/blogs/loader.php

    r12192 r12669  
    44 *
    55 * @since 3.0.0
     6 * @version 6.1.0
    67 */
    78
     
    8990            // Add controls into the Blogs sections of the customizer.
    9091            add_filter( 'bp_nouveau_customizer_controls', 'bp_nouveau_blogs_customizer_controls', 11, 1 );
     92
     93            // The number formatting is done into the `bp_nouveau_nav_count()` template tag.
     94            remove_filter( 'bp_get_total_blog_count_for_user', 'bp_core_number_format' );
    9195        }
    9296    }
Note: See TracChangeset for help on using the changeset viewer.