Skip to:
Content

bbPress.org

Opened 2 years ago

Last modified 5 weeks 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
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.


8 weeks ago
#2

  • Keywords has-patch added

#3 @khokansardar
8 weeks ago

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