Changeset 12274
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 ) ) { -
trunk/tests/phpunit/testcases/groups/class-bp-groups-member.php
r12273 r12274 1462 1462 $new_user = self::factory()->user->create(); 1463 1463 1464 $admin_users = get_users( [1464 $admin_users = get_users( array( 1465 1465 'blog_id' => bp_get_root_blog_id(), 1466 1466 'fields' => 'id', … … 1468 1468 'orderby' => 'ID', 1469 1469 'role' => 'administrator', 1470 ]);1470 ) ); 1471 1471 1472 1472 $admin_user = (int) $admin_users[0];
Note: See TracChangeset
for help on using the changeset viewer.