Changeset 12274 for trunk/src/bp-groups/classes/class-bp-groups-member.php
- Timestamp:
- 11/05/2018 08:53:13 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-groups/classes/class-bp-groups-member.php
r12273 r12274 1446 1446 // If the user is a sole group admin, install a site admin as their replacement. 1447 1447 if ( count( groups_get_group_admins( $group_id ) ) < 2 ) { 1448 $admin = get_users( [1448 $admin = get_users( array( 1449 1449 'blog_id' => bp_get_root_blog_id(), 1450 1450 'fields' => 'id', … … 1452 1452 'orderby' => 'ID', 1453 1453 'role' => 'administrator', 1454 ]);1454 ) ); 1455 1455 1456 1456 if ( ! empty( $admin ) ) {
Note: See TracChangeset
for help on using the changeset viewer.