Skip to:

#7497 closed defect (bug) (fixed)

`BP_Groups_Group::set_up_admins_and_mods()` can fail when users don't have site role

Reported by: Boone Gorges Owned by: Boone Gorges
Milestone: 2.9 Priority: normal
Severity: normal Version:
Component: Groups Keywords:


The get_users() query internally defaults to using the current site ID as blog_id. This results in a query that fails to return users who don't have a WP role on the current site.

Change History (1)

#1 @Boone Gorges
12 months ago

  • Owner set to Boone Gorges
  • Resolution set to fixed
  • Status changed from new to closed

In 11526:

Specify that group admin/mod queries should be blog-independent.

On Multisite, get_users() queries are limited to the current site, unless
otherwise specified. Since group membership is independent of WP site
roles/caps, we should opt out of this limitation.

Fixes #7497.

Note: See TracTickets for help on using tickets.