mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-06-05 15:09:37 +09:00
- fixed stripping tags in the biography field;
This commit is contained in:
@@ -2591,7 +2591,8 @@ if ( ! class_exists( 'um\core\Fields' ) ) {
|
||||
$output .= ob_get_clean();
|
||||
$output .= '<br /><span class="description">' . $placeholder . '</span>';
|
||||
} else {
|
||||
$output .= '<textarea ' . $disabled . ' style="height: ' . esc_attr( $height ) . ';" class="' . $this->get_class( $key, $data ) . '" name="' . esc_attr( $field_name ) . '" id="' . esc_attr( $field_id ) . '" placeholder="' . esc_attr( $placeholder ) . '">' . esc_textarea( strip_tags( $field_value ) ) . '</textarea>';
|
||||
$textarea_field_value = ! empty( $data['html'] ) ? $field_value : strip_tags( $field_value );
|
||||
$output .= '<textarea ' . $disabled . ' style="height: ' . esc_attr( $height ) . ';" class="' . $this->get_class( $key, $data ) . '" name="' . esc_attr( $field_name ) . '" id="' . esc_attr( $field_id ) . '" placeholder="' . esc_attr( $placeholder ) . '">' . esc_textarea( $textarea_field_value ) . '</textarea>';
|
||||
}
|
||||
|
||||
$output .= '</div>';
|
||||
|
||||
Reference in New Issue
Block a user