Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
10/07/2015 03:08:00 PM (9 years ago)
Author:
boonebgorges
Message:

Use xprofile_get_field() throughout bp-xprofile.

It's properly cached after [10198], so let's use it.

See #6638.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-xprofile/bp-xprofile-filters.php

    r10163 r10200  
    252252 */
    253253function xprofile_filter_format_field_value_by_field_id( $field_value, $field_id ) {
    254     $field = new BP_XProfile_Field( $field_id );
     254    $field = xprofile_get_field( $field_id );
    255255    return xprofile_filter_format_field_value_by_type( $field_value, $field->type );
    256256}
Note: See TracChangeset for help on using the changeset viewer.