Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
01/21/2011 11:03:05 AM (14 years ago)
Author:
johnjamesjacoby
Message:

Rename internal references to 'xprofile' component to 'profile' for object consistency and proper fallback support for when XProfile is disabled and the WP profile steps in. Move more code out of core and into Users and XProfile components. Split bp-xprofile-loader up into smaller files and convert to BP_Component.

File:
1 edited

Legend:

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

    r3778 r3790  
    159159
    160160        // filter the user_ids based on the search criteria.
    161         if ( bp_is_active( 'xprofile' ) ) {
     161        if ( bp_is_active( 'profile' ) ) {
    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( 'xprofile' ) ) {
     227        if ( bp_is_active( 'profile' ) ) {
    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( 'xprofile' ) ) {
     250        if ( bp_is_active( 'profile' ) ) {
    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( 'xprofile' ) )
     267        if ( !bp_is_active( 'profile' ) )
    268268            return false;
    269269
Note: See TracChangeset for help on using the changeset viewer.