Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
11/07/2010 11:17:17 AM (15 years ago)
Author:
boonebgorges
Message:

Reapplies changes to BP_Groups_Group::get methods that were accidentally reverted in r3300. Adds exclude parameters to groups get methods. Fixes #2639

File:
1 edited

Legend:

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

    r3369 r3371  
    125125        $sql['from'] = "FROM " . CUSTOM_USER_TABLE . " u LEFT JOIN " . CUSTOM_USER_META_TABLE . " um ON um.user_id = u.ID";
    126126
    127         if ( $search_terms && function_exists( 'xprofile_install' ) || 'alphabetical' == $type )
     127        if ( $search_terms && bp_is_active( 'xprofile' ) || 'alphabetical' == $type )
    128128            $sql['join_profiledata'] = "LEFT JOIN {$bp->profile->table_name_data} pd ON u.ID = pd.user_id";
    129129
     
    155155        }
    156156
    157         else if ( $user_id && function_exists( 'friends_install' ) ) {
     157        else if ( $user_id && bp_is_active( 'friends' ) ) {
    158158            $friend_ids = friends_get_friend_user_ids( $user_id );
    159159            $friend_ids = $wpdb->escape( implode( ',', (array)$friend_ids ) );
Note: See TracChangeset for help on using the changeset viewer.