Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
12/27/2010 10:57:31 PM (15 years ago)
Author:
djpaul
Message:

Removes trailing whitespace. Fixes #2965, props cnorris23

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-themes/bp-default/_inc/ajax.php

    r3580 r3592  
    568568    if ( $bp->messages->slug == $bp->current_component )
    569569        $autocomplete_all = $bp->messages->autocomplete_all;
    570    
     570
    571571    $friends = false;
    572572
     
    576576    if ( $autocomplete_all ) {
    577577        $users = BP_Core_User::search_users( $_GET['q'], $limit, $pag_page );
    578        
     578
    579579        if ( !empty( $users['users'] ) ) {
    580580            // Build an array with the correct format
     
    584584                    $user_ids[] = $user->id;
    585585            }
    586            
     586
    587587            $user_ids = apply_filters( 'bp_core_autocomplete_ids', $user_ids, $_GET['q'], $limit );
    588588        }
     
    590590        if ( function_exists( 'friends_search_friends' ) ) {
    591591            $users = friends_search_friends( $_GET['q'], $bp->loggedin_user->id, $limit, 1 );
    592            
     592
    593593            // Keeping the bp_friends_autocomplete_list filter for backward compatibility
    594594            $users = apply_filters( 'bp_friends_autocomplete_list', $users, $_GET['q'], $limit );
    595            
     595
    596596            if ( !empty( $users['friends'] ) )
    597597                $user_ids = apply_filters( 'bp_friends_autocomplete_ids', $users['friends'], $_GET['q'], $limit );
    598598        }
    599599    }
    600    
     600
    601601
    602602    if ( $user_ids ) {
Note: See TracChangeset for help on using the changeset viewer.