Changeset 6638
- Timestamp:
- 12/15/2012 05:13:00 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-core/bp-core-classes.php
r6574 r6638 297 297 298 298 // 'user_id' - When a user id is passed, limit to the friends of the user 299 // Only parse this if no 'include' param is passed, to account for 300 // friend request queries 299 301 // @todo remove need for bp_is_active() check 300 if ( !empty( $user_id ) && bp_is_active( 'friends' ) ) {302 if ( empty( $include ) && ! empty( $user_id ) && bp_is_active( 'friends' ) ) { 301 303 $friend_ids = friends_get_friend_user_ids( $user_id ); 302 304 $friend_ids = $wpdb->escape( implode( ',', (array) $friend_ids ) ); 303 305 304 if ( ! empty( $friend_ids ) ) {306 if ( ! empty( $friend_ids ) ) { 305 307 $sql['where'][] = "u.{$this->uid_name} IN ({$friend_ids})"; 306 308
Note: See TracChangeset
for help on using the changeset viewer.