Skip to:

Opened 7 years ago

Closed 7 years ago

#7497 closed defect (bug) (fixed)

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

Reported by: boonebgorges's profile boonebgorges Owned by: boonebgorges's profile boonebgorges
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 @boonebgorges
7 years ago

  • Owner set to boonebgorges
  • 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.