Skip to:
Content

Ticket #7513: buddypress-search-terms-bug.patch

File buddypress-search-terms-bug.patch, 810 bytes (added by brandonliles, 14 months ago)
  • src/bp-groups/bp-groups-template.php

     
    38783878                $exclude_admins_mods = 0;
    38793879        }
    38803880
    3881         $search_terms_default = null;
     3881        $search_terms_default = false;
    38823882        $search_query_arg = bp_core_get_component_search_query_arg( 'members' );
    38833883        if ( ! empty( $_REQUEST[ $search_query_arg ] ) ) {
    38843884                $search_terms_default = stripslashes( $_REQUEST[ $search_query_arg ] );
     
    38973897                'type'                => 'last_joined',
    38983898        ) );
    38993899
    3900         if ( is_null( $r['search_terms'] ) && ! empty( $_REQUEST['s'] ) ) {
     3900        if ( $r['search_terms'] !== false && ! empty( $_REQUEST['s'] ) ) {
    39013901                $r['search_terms'] = $_REQUEST['s'];
    39023902        }
    39033903