Skip to:
Content

Opened 6 months ago

Closed 6 months 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 Owned by: boonebgorges
Milestone: 2.9 Priority: normal
Severity: normal Version:
Component: Groups Keywords:
Cc:

Description

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
6 months 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.