Skip to:
Content

bbPress.org

Opened 2 years ago

Last modified 70 minutes 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:
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 (0)

Note: See TracTickets for help on using tickets.