Skip to:
Content

BuddyPress.org

Ticket #8283: 8283.patch

File 8283.patch, 1.1 KB (added by imath, 5 years ago)
  • src/bp-templates/bp-nouveau/includes/groups/loader.php

    diff --git src/bp-templates/bp-nouveau/includes/groups/loader.php src/bp-templates/bp-nouveau/includes/groups/loader.php
    index fc6af66ad..e76db63f0 100644
     
    33 * BP Nouveau Groups
    44 *
    55 * @since 3.0.0
    6  * @version 3.0.0
     6 * @version 6.0.0
    77 */
    88
    99// Exit if accessed directly.
    class BP_Nouveau_Groups { 
    9393         * Register add_filter() hooks
    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() {
    9899                add_filter( 'bp_nouveau_register_scripts', 'bp_nouveau_groups_register_scripts', 10, 1 );
    class BP_Nouveau_Groups { 
    129130                if ( bp_is_active( 'friends' ) && ! bp_nouveau_groups_disallow_all_members_invites() ) {
    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
    134138        /**