Is this a bug?
I’m using separate first name and last name xprofile fields (wish I hadn’t as BP doesn’t deal with this well at all, but it’s too late). However, in order to get full names showing up I’ve been trying to use ‘bp_get_member_profile_data’. It wasn’t working, so I did some digging and in ‘bp-members-template.php’ there is the following code (line 604):
`if ( !empty( $members_template->member->id ) )
$user_id = $members_template->member->id;`
But when I print the $members_template global, there is no key ‘id’, it’s called ‘user_id’. If I change that core file to use ‘user_id’, my full name solution works as expected.
Is that a bug, or am I missing something?
The topic ‘Is this a bug?’ is closed to new replies.