Changeset 12768
- Timestamp:
- 10/26/2020 02:11:53 PM (4 years ago)
- Location:
- trunk/src
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-members/bp-members-functions.php
r12765 r12768 2132 2132 $visibility_level = $user['meta'][ $key ]; 2133 2133 } else { 2134 $vfield = xprofile_get_field( $field_id );2134 $vfield = xprofile_get_field( $field_id, null, false ); 2135 2135 $visibility_level = isset( $vfield->default_visibility ) ? $vfield->default_visibility : 'public'; 2136 2136 } -
trunk/src/bp-members/classes/class-bp-signup.php
r12752 r12768 413 413 $visibility_level = $usermeta[ $key ]; 414 414 } else { 415 $vfield = xprofile_get_field( $field_id );415 $vfield = xprofile_get_field( $field_id, null, false ); 416 416 $visibility_level = isset( $vfield->default_visibility ) ? $vfield->default_visibility : 'public'; 417 417 } -
trunk/src/bp-xprofile/bp-xprofile-admin.php
r12725 r12768 272 272 273 273 // Load the field. 274 $field = xprofile_get_field( $field->id );274 $field = xprofile_get_field( $field->id, null, false ); 275 275 276 276 $class = ''; … … 479 479 $field = new BP_XProfile_Field(); 480 480 } else { 481 $field = xprofile_get_field( $field_id );481 $field = xprofile_get_field( $field_id, null, false ); 482 482 } 483 483 … … 616 616 // Handle the deletion of field 617 617 } else { 618 $field = xprofile_get_field( $field_id );618 $field = xprofile_get_field( $field_id, null, false ); 619 619 620 620 if ( !$field->delete( (bool) $delete_data ) ) { … … 651 651 } 652 652 653 $field = xprofile_get_field( $field_id );653 $field = xprofile_get_field( $field_id, null, false ); 654 654 655 655 $base_url = remove_query_arg( array( 'mode', 'field_id', 'bp_xprofile_delete_field' ), $_SERVER['REQUEST_URI'] ); ?> -
trunk/src/bp-xprofile/bp-xprofile-caps.php
r11301 r12768 86 86 if ( 'bp_xprofile_change_field_visibility' === $capability && 0 === $user_id ) { 87 87 $field_id = bp_get_the_profile_field_id(); 88 if ( $field_id && $field = xprofile_get_field( $field_id ) ) {88 if ( $field_id && $field = xprofile_get_field( $field_id, null, false ) ) { 89 89 $user_can = 'allowed' === $field->allow_custom_visibility; 90 90 } -
trunk/src/bp-xprofile/bp-xprofile-filters.php
r12694 r12768 311 311 */ 312 312 function xprofile_filter_format_field_value_by_field_id( $field_value, $field_id ) { 313 $field = xprofile_get_field( $field_id );313 $field = xprofile_get_field( $field_id, null, false ); 314 314 return xprofile_filter_format_field_value_by_type( $field_value, $field->type, $field_id ); 315 315 } -
trunk/src/bp-xprofile/bp-xprofile-functions.php
r12697 r12768 255 255 // Instantiate a new field object. 256 256 if ( ! empty( $r['field_id'] ) ) { 257 $field = xprofile_get_field( $r['field_id'] );257 $field = xprofile_get_field( $r['field_id'], null, false ); 258 258 } else { 259 259 $field = new BP_XProfile_Field; … … 526 526 527 527 // Use the user's stored level, unless custom visibility is disabled. 528 $field = xprofile_get_field( $field_id );528 $field = xprofile_get_field( $field_id, null, false ); 529 529 if ( isset( $field->allow_custom_visibility ) && 'disabled' === $field->allow_custom_visibility ) { 530 530 $current_level = $field->default_visibility; … … 1100 1100 } 1101 1101 1102 $field = xprofile_get_field( $field_id );1102 $field = xprofile_get_field( $field_id, null, false ); 1103 1103 1104 1104 $enabled = false; -
trunk/src/bp-xprofile/bp-xprofile-template.php
r12596 r12768 768 768 */ 769 769 if ( ! method_exists( $field, 'get_children' ) ) { 770 $field_obj = xprofile_get_field( $field->id );770 $field_obj = xprofile_get_field( $field->id, null, false ); 771 771 772 772 foreach ( $field as $field_prop => $field_prop_value ) {
Note: See TracChangeset
for help on using the changeset viewer.