Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
05/08/2013 12:34:37 AM (11 years ago)
Author:
johnjamesjacoby
Message:

Remove calls to trim() introduced in r7015 to still allow searching for beginning or ending spaces. See #4989.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-core/bp-core-classes.php

    r7015 r7017  
    839839
    840840        if ( !empty( $search_terms ) && bp_is_active( 'xprofile' ) ) {
    841             $search_terms             = esc_sql( like_escape( trim( $search_terms ) ) );
     841            $search_terms             = esc_sql( like_escape( $search_terms ) );
    842842            $sql['where_searchterms'] = "AND spd.value LIKE '%%$search_terms%%'";
    843843        }
     
    956956        }
    957957
    958         $letter     = esc_sql( like_escape( trim( $letter ) ) );
     958        $letter     = esc_sql( like_escape( $letter ) );
    959959        $status_sql = bp_core_get_status_sql( 'u.' );
    960960
     
    10541054        $pag_sql  = $limit && $page ? $wpdb->prepare( " LIMIT %d, %d", intval( ( $page - 1 ) * intval( $limit ) ), intval( $limit ) ) : '';
    10551055
    1056         $search_terms = esc_sql( like_escape( trim( $search_terms ) ) );
     1056        $search_terms = esc_sql( like_escape( $search_terms ) );
    10571057        $status_sql   = bp_core_get_status_sql( 'u.' );
    10581058
Note: See TracChangeset for help on using the changeset viewer.