Changeset 3592 for trunk/bp-themes/bp-default/_inc/ajax.php
- Timestamp:
- 12/27/2010 10:57:31 PM (15 years ago)
- File:
-
- 1 edited
-
trunk/bp-themes/bp-default/_inc/ajax.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-themes/bp-default/_inc/ajax.php
r3580 r3592 568 568 if ( $bp->messages->slug == $bp->current_component ) 569 569 $autocomplete_all = $bp->messages->autocomplete_all; 570 570 571 571 $friends = false; 572 572 … … 576 576 if ( $autocomplete_all ) { 577 577 $users = BP_Core_User::search_users( $_GET['q'], $limit, $pag_page ); 578 578 579 579 if ( !empty( $users['users'] ) ) { 580 580 // Build an array with the correct format … … 584 584 $user_ids[] = $user->id; 585 585 } 586 586 587 587 $user_ids = apply_filters( 'bp_core_autocomplete_ids', $user_ids, $_GET['q'], $limit ); 588 588 } … … 590 590 if ( function_exists( 'friends_search_friends' ) ) { 591 591 $users = friends_search_friends( $_GET['q'], $bp->loggedin_user->id, $limit, 1 ); 592 592 593 593 // Keeping the bp_friends_autocomplete_list filter for backward compatibility 594 594 $users = apply_filters( 'bp_friends_autocomplete_list', $users, $_GET['q'], $limit ); 595 595 596 596 if ( !empty( $users['friends'] ) ) 597 597 $user_ids = apply_filters( 'bp_friends_autocomplete_ids', $users['friends'], $_GET['q'], $limit ); 598 598 } 599 599 } 600 600 601 601 602 602 if ( $user_ids ) {
Note: See TracChangeset
for help on using the changeset viewer.