diff --git a/src/bp-xprofile/classes/class-bp-xprofile-field-type-checkbox.php b/src/bp-xprofile/classes/class-bp-xprofile-field-type-checkbox.php
index d986cd0..7267ad9 100644
a
|
b
|
class BP_XProfile_Field_Type_Checkbox extends BP_XProfile_Field_Type { |
156 | 156 | |
157 | 157 | $new_html = sprintf( '<label for="%3$s" class="option-label"><input %1$s type="checkbox" name="%2$s" id="%3$s" value="%4$s">%5$s</label>', |
158 | 158 | $selected, |
159 | | esc_attr( "field_{$this->field_obj->id}[]" ), |
| 159 | esc_attr( bp_get_the_profile_field_input_name() . '[]' ), |
160 | 160 | esc_attr( "field_{$options[$k]->id}_{$k}" ), |
161 | 161 | esc_attr( stripslashes( $options[$k]->name ) ), |
162 | 162 | esc_html( stripslashes( $options[$k]->name ) ) |
diff --git a/src/bp-xprofile/classes/class-bp-xprofile-field-type-radiobutton.php b/src/bp-xprofile/classes/class-bp-xprofile-field-type-radiobutton.php
index f8e0d5d..6c039bb 100644
a
|
b
|
class BP_XProfile_Field_Type_Radiobutton extends BP_XProfile_Field_Type { |
134 | 134 | |
135 | 135 | $new_html = sprintf( '<label for="%3$s" class="option-label"><input %1$s type="radio" name="%2$s" id="%3$s" value="%4$s">%5$s</label>', |
136 | 136 | $selected, |
137 | | esc_attr( "field_{$this->field_obj->id}" ), |
| 137 | esc_attr( bp_get_the_profile_field_input_name() ), |
138 | 138 | esc_attr( "option_{$options[$k]->id}" ), |
139 | 139 | esc_attr( stripslashes( $options[$k]->name ) ), |
140 | 140 | esc_html( stripslashes( $options[$k]->name ) ) |