Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
10/07/2015 03:08:00 PM (10 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-admin.php

    r10179 r10200  
    180180
    181181                                    // Load the field.
    182                                     $field = new BP_XProfile_Field( $field->id );
     182                                    $field = xprofile_get_field( $field->id );
    183183
    184184                                    $class = '';
     
    330330    $bp = buddypress();
    331331
    332     $field           = new BP_XProfile_Field( $field_id );
     332    $field           = xprofile_get_field( $field_id );
    333333    $field->group_id = $group_id;
    334334
     
    439439    // @todo trust this param.
    440440    $field_type  = ( 'field' == $field_type ) ? __( 'field', 'buddypress' ) : __( 'option', 'buddypress' );
    441     $field       = new BP_XProfile_Field( $field_id );
     441    $field       = xprofile_get_field( $field_id );
    442442
    443443    if ( !$field->delete( (bool) $delete_data ) ) {
Note: See TracChangeset for help on using the changeset viewer.