Changeset 1241
- Timestamp:
- 03/19/2009 04:36:58 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-core/bp-core-templatetags.php
r1238 r1241 230 230 } 231 231 232 function bp_fetch_user_fullname( $user_id = false, $echo = true ) {232 function bp_fetch_user_fullname( $user_id, $echo = true ) { 233 233 global $bp; 234 234 235 235 if ( !$user_id ) 236 $user_id = $bp->displayed_user->id;237 236 return false; 237 238 238 if ( !$fullname = wp_cache_get( 'bp_user_fullname_' . $user_id, 'bp' ) ) { 239 239 if ( function_exists('xprofile_install') ) { 240 240 $fullname = bp_core_ucfirst( xprofile_get_field_data( BP_XPROFILE_FULLNAME_FIELD_NAME, $user_id ) ); 241 241 242 if ( empty($fullname) ) {242 if ( empty($fullname) || !$fullname ) { 243 243 $ud = get_userdata($user_id); 244 244 $fullname = bp_core_ucfirst($ud->user_login);
Note: See TracChangeset
for help on using the changeset viewer.