Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
07/06/2016 02:02:37 AM (8 years ago)
Author:
dcavins
Message:

Improve BP_Groups_Group::filter_user_groups().

Add a preceding wildcard to the LIKE search terms statement in
BP_Groups_Group::filter_user_groups(). Before this change, the
function would only find group names and descriptions that started with
the search string.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-groups/classes/class-bp-groups-group.php

    r10913 r10937  
    507507            $user_id = bp_displayed_user_id();
    508508
    509         $search_terms_like = bp_esc_like( $filter ) . '%';
     509        $search_terms_like = '%' . bp_esc_like( $filter ) . '%';
    510510
    511511        $pag_sql = $order_sql = $hidden_sql = '';
Note: See TracChangeset for help on using the changeset viewer.