Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
09/05/2011 02:26:43 PM (13 years ago)
Author:
boonebgorges
Message:

Don't check bp_xprofile_fullname_field_name() in BP_Core_User::populate() when xprofile component is disabled. Fixes #3350.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-core/bp-core-classes.php

    r4937 r5102  
    148148        global $bp;
    149149
    150         $full_name_field_name = bp_xprofile_fullname_field_name();
    151 
    152150        if ( bp_is_active( 'xprofile' ) )
    153151            $this->profile_data = $this->get_profile_data();
    154152
    155         if ( $this->profile_data ) {
     153        if ( !empty( $this->profile_data ) ) {
     154            $full_name_field_name = bp_xprofile_fullname_field_name();
     155
    156156            $this->user_url  = bp_core_get_user_domain( $this->id, $this->profile_data['user_nicename'], $this->profile_data['user_login'] );
    157157            $this->fullname  = esc_attr( $this->profile_data[$full_name_field_name]['field_data'] );
Note: See TracChangeset for help on using the changeset viewer.