Ticket #5746: 5746.patch
File 5746.patch, 909 bytes (added by , 10 years ago) |
---|
-
bp-groups-template.php
2268 2268 if ( bp_is_group_members() ) { 2269 2269 $exclude_admins_mods = 0; 2270 2270 } 2271 2272 $search_terms = null; 2271 2273 2272 2274 $r = wp_parse_args( $args, array( 2273 2275 'group_id' => bp_get_current_group_id(), … … 2278 2280 'exclude_admins_mods' => $exclude_admins_mods, 2279 2281 'exclude_banned' => 1, 2280 2282 'group_role' => false, 2281 'search_terms' => false,2283 'search_terms' => $search_terms, 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']; 2287 2289 2288 2290 $members_template = new BP_Groups_Group_Members_Template( $r );