Skip to:
Content

BuddyPress.org

Changeset 8166


Ignore:
Timestamp:
03/26/2014 10:44:50 PM (11 years ago)
Author:
boonebgorges
Message:

Enforce null search_terms for members widgets

Without the explicity search_terms=false param, widgets could pick up
incorrectly on search params elsewhere on the page.

Fixes #5318

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-core/bp-core-widgets.php

    r8078 r8166  
    191191            'max'             => $instance['max_members'],
    192192            'populate_extras' => true,
     193            'search_terms'    => false,
    193194        );
    194195
     
    346347            'max'             => $instance['max_members'],
    347348            'populate_extras' => true,
     349            'search_terms'    => false,
    348350        );
    349351
     
    448450            'max'             => $instance['max_members'],
    449451            'populate_extras' => true,
     452            'search_terms'    => false,
    450453        );
    451454
     
    541544        'max'             => $_POST['max-members'],
    542545        'populate_extras' => 1,
     546        'search_terms'    => false,
    543547    );
    544548
    545     if ( bp_has_members( 'user_id=0&type=' . $type . '&per_page=' . $_POST['max-members'] . '&max=' . $_POST['max-members'] . '&populate_extras=1' ) ) : ?>
     549    if ( bp_has_members( $members_args ) ) : ?>
    546550        <?php echo '0[[SPLIT]]'; // return valid result. TODO: remove this. ?>
    547551        <?php while ( bp_members() ) : bp_the_member(); ?>
Note: See TracChangeset for help on using the changeset viewer.