Skip to:
Content

BuddyPress.org

Opened 6 years ago

Last modified 5 years ago

#6155 new defect (bug)

bp_core_get_active_member_count() multisite query does not exclude 'spam' status — at Initial Version

Reported by: johnjamesjacoby Owned by:
Milestone: Awaiting Contributions Priority: normal
Severity: normal Version:
Component: Members Keywords: needs-unit-tests needs-patch
Cc:

Description

If multisite, it's possible for spam users to be included in the active member count query.

The query was introduced in r.5987:

"SELECT ID FROM {$wpdb->users} WHERE (user_status != 0 OR deleted != 0 OR user_status != 0)"

It should likely be:

"SELECT ID FROM {$wpdb->users} WHERE (user_status != 0 OR deleted != 0 OR spam != 0)"

Change History (0)

Note: See TracTickets for help on using tickets.