Skip to:

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 Version 1

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

Description (last modified by johnjamesjacoby)

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

The query was introduced in r5987:

"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 (1)

#1 @johnjamesjacoby
6 years ago

  • Description modified (diff)
Note: See TracTickets for help on using tickets.