diff --git a/src/bp-groups/bp-groups-template.php b/src/bp-groups/bp-groups-template.php
index fdea75c..46e7472 100644
|
a
|
b
|
function bp_total_group_count_for_user( $user_id = 0 ) { |
| 3606 | 3606 | * @type string $type Optional. Sort order of results. 'last_joined', |
| 3607 | 3607 | * 'first_joined', or any of the $type params available in |
| 3608 | 3608 | * {@link BP_User_Query}. Default: 'last_joined'. |
| 3609 | | * @type string $search_terms Optional. Search terms to match. Pass an |
| | 3609 | * @type string $search_terms Optional. Search terms to match. Pass an |
| 3610 | 3610 | * empty string to force-disable search, even in |
| 3611 | | * the presence of $_REQUEST['s']. Default: null. |
| | 3611 | * the presence of $_REQUEST['members_search']. |
| | 3612 | * Default: null. |
| 3612 | 3613 | * } |
| 3613 | 3614 | * |
| 3614 | 3615 | * @return bool |
| … |
… |
function bp_group_has_members( $args = '' ) { |
| 3635 | 3636 | 'type' => 'last_joined', |
| 3636 | 3637 | ) ); |
| 3637 | 3638 | |
| 3638 | | if ( is_null( $r['search_terms'] ) && ! empty( $_REQUEST['s'] ) ) { |
| 3639 | | $r['search_terms'] = $_REQUEST['s']; |
| | 3639 | if ( is_null( $r['search_terms'] ) && ! empty( $_REQUEST['members_search'] ) ) { |
| | 3640 | $r['search_terms'] = $_REQUEST['members_search']; |
| 3640 | 3641 | } |
| 3641 | 3642 | |
| 3642 | 3643 | $members_template = new BP_Groups_Group_Members_Template( $r ); |