Skip to:
Content

BuddyPress.org

Changeset 8660


Ignore:
Timestamp:
07/22/2014 05:54:03 PM (10 years ago)
Author:
djpaul
Message:

Members: set the displayed user's fullname to their display name

This was broken in r8610 because it was trying to access a property in the WP_User object that doesn't exist.

Fixes #5764, props imath

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-members/bp-members-loader.php

    r8627 r8660  
    114114
    115115        // Fetch the full name displayed user
    116         $bp->displayed_user->fullname = isset( $bp->displayed_user->userdata->fullname ) ? $bp->displayed_user->userdata->fullname : '';
     116        $bp->displayed_user->fullname = isset( $bp->displayed_user->userdata->display_name ) ? $bp->displayed_user->userdata->display_name : '';
    117117
    118118        // The domain for the user currently being displayed
Note: See TracChangeset for help on using the changeset viewer.