mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-06-05 15:09:37 +09:00
Merge remote-tracking branch 'remotes/origin/fix/helpscout#_29054_member_directories_not_displaying_properly'
This commit is contained in:
@@ -86,11 +86,14 @@ function um_remove_special_users_from_list( $query_args, $args ) {
|
||||
|
||||
if ( ! empty( $roles ) ) {
|
||||
if ( ! empty( $query_args['role__in'] ) ) {
|
||||
$query_args['role__in'] = array_intersect( $query_args['role__in'], $roles );
|
||||
$roles_intersect = array_intersect( $query_args['role__in'], $roles );
|
||||
if( ! empty( $roles_intersect ) ){
|
||||
$query_args['role__in'] = $roles_intersect;
|
||||
}
|
||||
} else {
|
||||
$query_args['role__in'] = $roles;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user