Ticket #5072: 5072.001.diff
File 5072.001.diff, 1.1 KB (added by , 11 years ago) |
---|
-
bp-groups/bp-groups-classes.php
class BP_Group_Member_Query extends BP_User_Query { 987 987 // values passed to the constructor will, as usual, override 988 988 // these defaults). 989 989 $this->query_vars = wp_parse_args( $this->query_vars, array( 990 'group_id' => 0, 991 'group_role' => array( 'member' ), 990 'group_id' => 0, 991 'group_role' => array( 'member' ), 992 'is_confirmed' => true 992 993 ) ); 993 994 994 995 $group_member_ids = $this->get_group_member_ids(); … … class BP_Group_Member_Query extends BP_User_Query { 1028 1029 1029 1030 $sql['where'][] = $wpdb->prepare( "group_id = %d", $this->query_vars['group_id'] ); 1030 1031 1032 $sql['where'][] = $wpdb->prepare( "is_confirmed = %d", $this->query_vars['is_confirmed'] ); 1033 1031 1034 // Role information is stored as follows: admins have 1032 1035 // is_admin = 1, mods have is_mod = 1, banned have is_banned = 1033 1036 // 1, and members have all three set to 0.