Changeset 10200 for trunk/src/bp-xprofile/bp-xprofile-functions.php
- Timestamp:
- 10/07/2015 03:08:00 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-xprofile/bp-xprofile-functions.php
r10198 r10200 251 251 // Instantiate a new field object. 252 252 if ( ! empty( $r['field_id'] ) ) { 253 $field = new BP_XProfile_Field( $r['field_id'] );253 $field = xprofile_get_field( $r['field_id'] ); 254 254 } else { 255 255 $field = new BP_XProfile_Field; … … 394 394 } 395 395 396 $field = new BP_XProfile_Field( $field_id );396 $field = xprofile_get_field( $field_id ); 397 397 $field_type = BP_XProfile_Field::get_type( $field_id ); 398 398 $field_type_obj = bp_xprofile_create_field_type( $field_type ); … … 505 505 506 506 // Use the user's stored level, unless custom visibility is disabled. 507 $field = new BP_XProfile_Field( $field_id );507 $field = xprofile_get_field( $field_id ); 508 508 if ( isset( $field->allow_custom_visibility ) && 'disabled' === $field->allow_custom_visibility ) { 509 509 $current_level = $field->default_visibility;
Note: See TracChangeset
for help on using the changeset viewer.