Changeset 11886 for trunk/src/bp-core/classes/class-bp-user-query.php
- Timestamp:
- 03/05/2018 08:44:16 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-core/classes/class-bp-user-query.php
r11705 r11886 414 414 } 415 415 416 $ sql['where']['search'] =$wpdb->prepare(417 " u.{$this->uid_name} IN ( SELECT ID FROM {$wpdb->users} WHERE ( user_login LIKE %s OR user_login LIKE %s OR user_nicename LIKE %s OR user_nicename LIKE %s ))",416 $matched_user_ids = $wpdb->get_col( $wpdb->prepare( 417 "SELECT ID FROM {$wpdb->users} WHERE ( user_login LIKE %s OR user_login LIKE %s OR user_nicename LIKE %s OR user_nicename LIKE %s )", 418 418 $search_terms_nospace, 419 419 $search_terms_space, 420 420 $search_terms_nospace, 421 421 $search_terms_space 422 ); 422 ) ); 423 424 $match_in_clause = empty( $matched_user_ids) ? 'NULL' : implode( ',', $matched_user_ids ); 425 $sql['where']['search'] = "u.{$this->uid_name} IN ({$match_in_clause})"; 423 426 } 424 427
Note: See TracChangeset
for help on using the changeset viewer.