Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
01/25/2011 08:58:56 PM (14 years ago)
Author:
johnjamesjacoby
Message:

Rename new 'bp-users' component to 'bp-members' for consistency through-out project.
Core, Messages, and Friends Components now use the BP_Component class.
Split Friends and Messages components into smaller files.
Change references to 'profile' to 'xprofile' through-out project for consistency.
Introduce 'bp_actions' and 'bp_screens' standard hooks to replace the usage of 'wp' through-out project.
Move component loader sequence into bp-core-bootstrap.php,
Move old root_component action into 1.3 deprecated file.

File:
1 edited

Legend:

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

    r3903 r3917  
    159159
    160160        // filter the user_ids based on the search criteria.
    161         if ( bp_is_active( 'profile' ) ) {
     161        if ( bp_is_active( 'xprofile' ) ) {
    162162            $sql = "SELECT DISTINCT user_id FROM {$bp->profile->table_name_data} WHERE user_id IN ($fids) AND value LIKE '$filter%%' {$pag_sql}";
    163163            $total_sql = "SELECT COUNT(DISTINCT user_id) FROM {$bp->profile->table_name_data} WHERE user_id IN ($fids) AND value LIKE '$filter%%'";
     
    225225
    226226        // filter the user_ids based on the search criteria.
    227         if ( bp_is_active( 'profile' ) ) {
     227        if ( bp_is_active( 'xprofile' ) ) {
    228228            $sql = $wpdb->prepare( "SELECT DISTINCT d.user_id as id FROM {$bp->profile->table_name_data} d, $users_table u WHERE d.user_id = u.id AND d.value LIKE '$filter%%' ORDER BY d.value DESC $pag_sql" );
    229229        } else {
     
    248248
    249249        // filter the user_ids based on the search criteria.
    250         if ( bp_is_active( 'profile' ) ) {
     250        if ( bp_is_active( 'xprofile' ) ) {
    251251            $sql = $wpdb->prepare( "SELECT COUNT(DISTINCT d.user_id) FROM {$bp->profile->table_name_data} d, $users_table u WHERE d.user_id = u.id AND d.value LIKE '$filter%%'" );
    252252        } else {
     
    265265        global $wpdb, $bp;
    266266
    267         if ( !bp_is_active( 'profile' ) )
     267        if ( !bp_is_active( 'xprofile' ) )
    268268            return false;
    269269
Note: See TracChangeset for help on using the changeset viewer.