// Otherwise, if no filter is specified.
} else {
- // Kill slashes and use the standard WordPress wp_kses_post() function to to the filtering then apply nl2br()
- $in = nl2br(wp_kses_post(stripslashes($_POST[$as])));
+ // Kill slashes and use the standard WordPress wp_kses_post() function to do the filtering
+ $in = wp_kses_post(stripslashes($_POST[$as]));
}
-
// Check for required field
if (isset($f['required']) && $f['required'] && trim($in) == '') {
$this->inputFieldStatus = false;
<tr>
<th {if $memberInfo.fieldRequired.descr}class="glm-required"{/if}>Description:</th>
<td {if $memberInfo.fieldFail.descr}class="glm-form-bad-input"{/if}>
- {php}
- wp_editor('{$memberInfo.fieldData.descr|escape:quotes|nl2br}', 'glm_descr', array(
+ {php}
+ wp_editor('{$memberInfo.fieldData.descr|escape:quotes}', 'glm_descr', array(
// 'media_buttons' => true,
// 'quicktags' => false,
+ 'wpautop' => false,
'textarea_name' => 'descr',
'editor_height' => 200, // Height in px, overrides editor_rows
// 'textarea_rows' => 8