Skip to:
Content

BuddyPress.org

Ticket #5072: 5072.001.diff

File 5072.001.diff, 1.1 KB (added by Mike_Cowobo, 11 years ago)
  • bp-groups/bp-groups-classes.php

    class BP_Group_Member_Query extends BP_User_Query { 
    987987                // values passed to the constructor will, as usual, override
    988988                // these defaults).
    989989                $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
    992993                ) );
    993994
    994995                $group_member_ids = $this->get_group_member_ids();
    class BP_Group_Member_Query extends BP_User_Query { 
    10281029
    10291030                $sql['where'][] = $wpdb->prepare( "group_id = %d", $this->query_vars['group_id'] );
    10301031
     1032                $sql['where'][] = $wpdb->prepare( "is_confirmed = %d", $this->query_vars['is_confirmed'] );
     1033
    10311034                // Role information is stored as follows: admins have
    10321035                // is_admin = 1, mods have is_mod = 1, banned have is_banned =
    10331036                // 1, and members have all three set to 0.