Changeset 8574
- Timestamp:
- 07/09/2014 08:16:16 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-groups/bp-groups-template.php
r8531 r8574 2258 2258 * 'first_joined', or any of the $type params available in 2259 2259 * {@link BP_User_Query}. Default: 'last_joined'. 2260 * @type string $search_terms Optional. Search terms to match. 2260 * @type string $search_terms Optional. Search terms to match. Pass an 2261 * empty string to force-disable search, even in the presence of 2262 * $_REQUEST['s']. Default: null. 2261 2263 * } 2262 2264 */ … … 2279 2281 'exclude_banned' => 1, 2280 2282 'group_role' => false, 2281 'search_terms' => false,2283 'search_terms' => null, 2282 2284 'type' => 'last_joined', 2283 2285 ) ); 2284 2286 2285 if ( empty( $r['search_terms'] ) && ! empty( $_REQUEST['s'] ) )2287 if ( is_null( $r['search_terms'] ) && ! empty( $_REQUEST['s'] ) ) { 2286 2288 $r['search_terms'] = $_REQUEST['s']; 2289 } 2287 2290 2288 2291 $members_template = new BP_Groups_Group_Members_Template( $r );
Note: See TracChangeset
for help on using the changeset viewer.