Skip to:

Opened 2 years ago

Last modified 2 months ago

#3457 new defect (bug)

bbp_get_total_users is wrong on multisite

Reported by: shawfactor's profile shawfactor Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version:
Component: API Keywords: has-patch needs-testing


bbp_get_total_users returns the total number of use4rs in the wordpress database. But this is extremely confusing on multisite as this is not the actual number of users on the site. Why not use:

$user_count = count_users();
return apply_filters( 'bbp_get_total_users', (int) $user_counttotal_users? );

This would lead to a much more logical number that does not confuse local administrators

Change History (2)

This ticket was mentioned in PR #16 on bbpress/bbPress by @khokansardar.

3 months ago

  • Keywords has-patch added

#3 @khokansardar
3 months ago

  • Keywords needs-testing added
Note: See TracTickets for help on using tickets.