Skip to:
Content

BuddyPress.org

Ticket #5356: 5356.diff

File 5356.diff, 785 bytes (added by imath, 11 years ago)
  • bp-groups/bp-groups-classes.php

    diff --git bp-groups/bp-groups-classes.php bp-groups/bp-groups-classes.php
    index de81785..7747fff 100644
    class BP_Group_Member_Query extends BP_User_Query { 
    15551555                $sql['order']   = "DESC";
    15561556
    15571557                /** LIMIT clause ******************************************************/
    1558                 $this->group_member_ids = $wpdb->get_col( "{$sql['select']} {$sql['where']} {$sql['orderby']} {$sql['order']} {$sql['limit']}" );
     1558                $member_ids_sql = apply_filters( 'bp_group_member_query_member_ids_sql', "{$sql['select']} {$sql['where']} {$sql['orderby']} {$sql['order']} {$sql['limit']}", $sql, $this->query_vars );
     1559                $this->group_member_ids = $wpdb->get_col( $member_ids_sql );
    15591560
    15601561                return $this->group_member_ids;
    15611562        }