Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
07/09/2011 10:13:15 PM (13 years ago)
Author:
boonebgorges
Message:

Introduces bp_xprofile_fullname_field_name() to avoid referencing BP_XPROFILE_FULLNAME_FIELD_NAME throughout BuddyPress. See #3314

File:
1 edited

Legend:

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

    r4452 r4634  
    984984            $user_id = $bp->displayed_user->id;
    985985
    986         $data = xprofile_get_field_data( BP_XPROFILE_FULLNAME_FIELD_NAME, $user_id );
    987 
    988         return $data[BP_XPROFILE_FULLNAME_FIELD_NAME];
     986        $field_name = bp_xprofile_fullname_field_name();
     987
     988        $data = xprofile_get_field_data( $field_name, $user_id );
     989
     990        return $data[$field_name];
    989991    }
    990992}
Note: See TracChangeset for help on using the changeset viewer.