Changeset 8027 for trunk/bp-xprofile/bp-xprofile-filters.php
- Timestamp:
- 03/03/2014 09:35:48 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-xprofile/bp-xprofile-filters.php
r7862 r8027 216 216 217 217 // Pull up the xprofile fullname of each commenter 218 if ( $fullnames = BP_XProfile_ProfileData::get_value_byid( 1,$user_ids ) ) {219 foreach( (array) $fullnames as $user ) {220 $users[ $user ->user_id ] = trim( stripslashes( $user->value ) );218 if ( $fullnames = bp_core_get_user_displaynames( $user_ids ) ) { 219 foreach( (array) $fullnames as $user_id => $user_fullname ) { 220 $users[ $user_id ] = trim( stripslashes( $user_fullname ) ); 221 221 } 222 222 } … … 252 252 } 253 253 254 $user_id_names = BP_XProfile_ProfileData::get_value_byid( bp_xprofile_fullname_field_id(),$user_query->user_ids );254 $user_id_names = bp_core_get_user_displaynames( $user_query->user_ids ); 255 255 256 256 // Loop through names and override each user's fullname 257 foreach ( $user_id_names as $user ) {258 if ( isset( $user_query->results[ $user ->user_id ] ) ) {259 $user_query->results[ $user ->user_id ]->fullname = $user->value;257 foreach ( $user_id_names as $user_id => $user_fullname ) { 258 if ( isset( $user_query->results[ $user_id ] ) ) { 259 $user_query->results[ $user_id ]->fullname = $user_fullname; 260 260 } 261 261 }
Note: See TracChangeset
for help on using the changeset viewer.