Changeset 12881 for trunk/src/bp-xprofile/bp-xprofile-admin.php
- Timestamp:
- 04/13/2021 04:16:04 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-xprofile/bp-xprofile-admin.php
r12868 r12881 558 558 559 559 if ( ! $field->field_type_supports( 'allow_custom_visibility' ) ) { 560 $default_visibility = 'public'; 560 $default_visibility = 'public'; 561 $available_visibility_levels = bp_xprofile_get_visibility_levels(); 562 563 if ( isset( $field->type_obj->visibility ) && in_array( $field->type_obj->visibility, array_keys( $available_visibility_levels ), true ) ) { 564 $default_visibility = $field->type_obj->visibility; 565 } 561 566 } 562 567
Note: See TracChangeset
for help on using the changeset viewer.