Changeset 13392 for trunk/src/bp-xprofile/screens/edit.php
- Timestamp:
- 01/06/2023 11:35:55 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-xprofile/screens/edit.php
r12869 r13392 59 59 60 60 $is_required[ $field_id ] = xprofile_check_is_required_field( $field_id ) && ! bp_current_user_can( 'bp_moderate' ); 61 if ( $is_required[ $field_id] && empty( $_POST['field_' . $field_id] ) ) {61 if ( $is_required[ $field_id ] && empty( $_POST[ 'field_' . $field_id ] ) ) { 62 62 $errors = true; 63 63 } … … 79 79 80 80 // Certain types of fields (checkboxes, multiselects) may come through empty. Save them as an empty array so that they don't get overwritten by the default on the next edit. 81 $value = isset( $_POST[ 'field_' . $field_id] ) ? $_POST['field_' . $field_id] : '';81 $value = isset( $_POST[ 'field_' . $field_id ] ) ? $_POST[ 'field_' . $field_id ] : ''; 82 82 83 $visibility_level = !empty( $_POST[ 'field_' . $field_id . '_visibility'] ) ? $_POST['field_' . $field_id . '_visibility'] : 'public';83 $visibility_level = !empty( $_POST[ 'field_' . $field_id . '_visibility' ] ) ? $_POST[ 'field_' . $field_id . '_visibility' ] : 'public'; 84 84 85 85 // Save the old and new values. They will be
Note: See TracChangeset
for help on using the changeset viewer.