diff --git src/bp-blogs/classes/class-bp-blogs-component.php src/bp-blogs/classes/class-bp-blogs-component.php
index 787ce402e..9ad5e6d1f 100644
|
|
class BP_Blogs_Component extends BP_Component { |
224 | 224 | sprintf( |
225 | 225 | '<span class="%s">%s</span>', |
226 | 226 | esc_attr( $class ), |
227 | | bp_core_number_format( $count ) |
| 227 | esc_html( $count ) |
228 | 228 | ) |
229 | 229 | ); |
230 | 230 | $main_nav = array( |
diff --git src/bp-friends/bp-friends-filters.php src/bp-friends/bp-friends-filters.php
index 24ecea0ea..edcbcdef4 100644
|
|
|
10 | 10 | // Exit if accessed directly. |
11 | 11 | defined( 'ABSPATH' ) || exit; |
12 | 12 | |
| 13 | // Format numerical output. |
| 14 | add_filter( 'friends_get_total_friend_count', 'bp_core_number_format' ); |
| 15 | add_filter( 'bp_get_total_friend_count', 'bp_core_number_format' ); |
| 16 | |
13 | 17 | /** |
14 | 18 | * Filter BP_User_Query::populate_extras to add confirmed friendship status. |
15 | 19 | * |
diff --git src/bp-friends/bp-friends-template.php src/bp-friends/bp-friends-template.php
index 851c1508b..98efc47ec 100644
|
|
function bp_total_friend_count( $user_id = 0 ) { |
649 | 649 | */ |
650 | 650 | return apply_filters( 'bp_get_total_friend_count', friends_get_total_friend_count( $user_id ), $user_id ); |
651 | 651 | } |
652 | | add_filter( 'bp_get_total_friend_count', 'bp_core_number_format' ); |
653 | 652 | |
654 | 653 | /** |
655 | 654 | * Output the total friendship request count for a given user. |
diff --git src/bp-friends/classes/class-bp-friends-component.php src/bp-friends/classes/class-bp-friends-component.php
index cd54427e4..d29f416dd 100644
|
|
class BP_Friends_Component extends BP_Component { |
176 | 176 | sprintf( |
177 | 177 | '<span class="%s">%s</span>', |
178 | 178 | esc_attr( $class ), |
179 | | bp_core_number_format( $count ) |
| 179 | esc_html( $count ) |
180 | 180 | ) |
181 | 181 | ); |
182 | 182 | |
diff --git src/bp-notifications/bp-notifications-filters.php src/bp-notifications/bp-notifications-filters.php
index e9fee111b..9e496c2e2 100644
|
|
|
1 | 1 | <?php |
2 | 2 | /** |
3 | | * Filters related to the Activity component. |
| 3 | * Filters related to the Notifications component. |
4 | 4 | * |
5 | 5 | * @package BuddyPress |
6 | 6 | * @subpackage Notifications |
7 | 7 | * @since 4.0.0 |
8 | 8 | */ |
9 | 9 | |
| 10 | |
| 11 | // Format numerical output. |
| 12 | add_filter( 'bp_notifications_get_total_notification_count', 'bp_core_number_format' ); |
| 13 | |
10 | 14 | // Privacy data export. |
11 | 15 | add_filter( 'wp_privacy_personal_data_exporters', 'bp_register_notifications_personal_data_exporter' ); |
12 | 16 | |
diff --git src/bp-notifications/classes/class-bp-notifications-component.php src/bp-notifications/classes/class-bp-notifications-component.php
index 4333d8b30..36dc11037 100644
|
|
class BP_Notifications_Component extends BP_Component { |
164 | 164 | sprintf( |
165 | 165 | '<span class="%s">%s</span>', |
166 | 166 | esc_attr( $class ), |
167 | | bp_core_number_format( $count ) |
| 167 | esc_html( $count ) |
168 | 168 | ) |
169 | 169 | ); |
170 | 170 | } else { |
diff --git src/bp-templates/bp-nouveau/includes/blogs/loader.php src/bp-templates/bp-nouveau/includes/blogs/loader.php
index ed626af1f..7baa058df 100644
|
|
|
3 | 3 | * BP Nouveau Blogs |
4 | 4 | * |
5 | 5 | * @since 3.0.0 |
| 6 | * @version 6.1.0 |
6 | 7 | */ |
7 | 8 | |
8 | 9 | // Exit if accessed directly. |
… |
… |
class BP_Nouveau_Blogs { |
88 | 89 | |
89 | 90 | // Add controls into the Blogs sections of the customizer. |
90 | 91 | 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' ); |
91 | 95 | } |
92 | 96 | } |
93 | 97 | } |
diff --git src/bp-templates/bp-nouveau/includes/friends/loader.php src/bp-templates/bp-nouveau/includes/friends/loader.php
index d09eab050..ad4a4f07f 100644
|
|
|
3 | 3 | * BP Nouveau Friends |
4 | 4 | * |
5 | 5 | * @since 3.0.0 |
6 | | * @version 3.0.0 |
| 6 | * @version 6.1.0 |
7 | 7 | */ |
8 | 8 | |
9 | 9 | // Exit if accessed directly. |
… |
… |
class BP_Nouveau_Friends { |
87 | 87 | foreach ( $buttons as $button ) { |
88 | 88 | add_filter( 'bp_button_' . $button, 'bp_nouveau_ajax_button', 10, 5 ); |
89 | 89 | } |
| 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' ); |
90 | 94 | } |
91 | 95 | |
92 | 96 | /** |
diff --git src/bp-templates/bp-nouveau/includes/groups/loader.php src/bp-templates/bp-nouveau/includes/groups/loader.php
index e76db63f0..5623fd555 100644
|
|
|
3 | 3 | * BP Nouveau Groups |
4 | 4 | * |
5 | 5 | * @since 3.0.0 |
6 | | * @version 6.0.0 |
| 6 | * @version 6.1.0 |
7 | 7 | */ |
8 | 8 | |
9 | 9 | // Exit if accessed directly. |
… |
… |
class BP_Nouveau_Groups { |
133 | 133 | |
134 | 134 | // The number formatting is done into the `bp_nouveau_nav_count()` template tag. |
135 | 135 | remove_filter( 'bp_get_total_group_count', 'bp_core_number_format' ); |
| 136 | remove_filter( 'bp_get_total_group_count_for_user', 'bp_core_number_format' ); |
136 | 137 | } |
137 | 138 | |
138 | 139 | /** |
diff --git src/bp-templates/bp-nouveau/includes/notifications/loader.php src/bp-templates/bp-nouveau/includes/notifications/loader.php
index 90e8215c7..c8cd319d0 100644
|
|
|
3 | 3 | * BP Nouveau Notifications |
4 | 4 | * |
5 | 5 | * @since 3.0.0 |
6 | | * @version 3.0.0 |
| 6 | * @version 6.1.0 |
7 | 7 | */ |
8 | 8 | |
9 | 9 | // Exit if accessed directly. |
… |
… |
class BP_Nouveau_Notifications { |
87 | 87 | add_filter( 'bp_get_the_notification_mark_unread_link', 'bp_nouveau_notifications_mark_unread_link', 10, 1 ); |
88 | 88 | add_filter( 'bp_get_the_notification_mark_read_link', 'bp_nouveau_notifications_mark_read_link', 10, 1 ); |
89 | 89 | 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' ); |
90 | 93 | } |
91 | 94 | } |
92 | 95 | |