Opened 2 years ago
Last modified 4 months ago
#3457 new defect (bug)
bbp_get_total_users is wrong on multisite
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | Awaiting Review | Priority: | normal |
Severity: | normal | Version: | |
Component: | API | Keywords: | has-patch needs-testing |
Cc: |
Description
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.
4 months ago
#2
- Keywords has-patch added
Note: See
TracTickets for help on using
tickets.
Trac: https://bbpress.trac.wordpress.org/ticket/3457