Changeset 2695 for trunk/bp-core/bp-core-classes.php
- Timestamp:
- 02/12/2010 12:31:49 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-core/bp-core-classes.php
r2576 r2695 207 207 * We can't add these to the main query above since only users who have this information will be returned (since the much of the data is in usermeta and won't support any type of directional join) 208 208 */ 209 foreach ( (array)$paged_users as $user )210 $user_ids[] = $user->id;211 212 $user_ids = $wpdb->escape( join( ',', (array)$user_ids ) ); 213 214 /* Add additional data to the returned results */ 215 if ( $populate_extras )209 if ( $populate_extras ) { 210 foreach ( (array)$paged_users as $user ) 211 $user_ids[] = $user->id; 212 213 $user_ids = $wpdb->escape( join( ',', (array)$user_ids ) ); 214 215 /* Add additional data to the returned results */ 216 216 $paged_users = BP_Core_User::get_user_extras( &$paged_users, $user_ids, $type ); 217 } 217 218 218 219 return array( 'users' => $paged_users, 'total' => $total_users );
Note: See TracChangeset
for help on using the changeset viewer.