Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
12/31/2014 08:48:50 PM (10 years ago)
Author:
r-a-y
Message:

bp-legacy: Show banned members when on a group's Manage Members page.

Previously, we passed exclude_banned=false in a querystring. This gets
interpreted by wp_parse_args() as string false. Our exclude_banned`
check in groups_get_group_members() does not interpret string 'false'
values, which led to banned members being excluded instead of included.

This commit switches the querystring to exclude_banned=0, which
groups_get_group_members() will interpret as a proper false value
allowing banned members to be shown.

Props thebigA.

Fixes #6013.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-templates/bp-legacy/buddypress/groups/single/admin.php

    r8678 r9292  
    231231        <h4><?php _e("Members", "buddypress"); ?></h4>
    232232
    233         <?php if ( bp_group_has_members( 'per_page=15&exclude_banned=false' ) ) : ?>
     233        <?php if ( bp_group_has_members( 'per_page=15&exclude_banned=0' ) ) : ?>
    234234
    235235            <?php if ( bp_group_member_needs_pagination() ) : ?>
Note: See TracChangeset for help on using the changeset viewer.