Skip to:
Content

BuddyPress.org

Ticket #6013: 6013.groups_get_group_members.patch

File 6013.groups_get_group_members.patch, 699 bytes (added by r-a-y, 11 years ago)
  • src/bp-groups/bp-groups-functions.php

     
    531531                'type'                => 'last_joined',
    532532        ) );
    533533
     534        // querystring 'false' values need to be explicitly cast as a false value
     535        // @see https://buddypress.trac.wordpress.org/ticket/6013
     536        if ( is_string( $r['exclude_banned'] ) && 'false' === $r['exclude_banned'] ) {
     537                $r['exclude_banned'] = 0;
     538        }
     539
    534540        // For legacy users. Use of BP_Groups_Member::get_all_for_group()
    535541        // is deprecated. func_get_args() can't be passed to a function in PHP
    536542        // 5.2.x, so we create a variable