Skip to content

Commit

Permalink
Remove number from get_field_ids
Browse files Browse the repository at this point in the history
  • Loading branch information
simison committed Feb 11, 2025
1 parent c799172 commit 93c3317
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -715,6 +715,10 @@ public static function get_compiled_form_for_email( $feedback_id, $form ) {
* @return string
*/
public static function escape_and_sanitize_field_value( $value ) {
if ( $value === null ) {
return '';
}

$value = str_replace( array( '[', ']' ), array( '[', ']' ), $value );
return nl2br( wp_kses( $value, array() ) );
}
Expand Down Expand Up @@ -980,7 +984,6 @@ public function get_field_ids() {
switch ( $type ) {
case 'email':
case 'name':
case 'number':
case 'url':
case 'subject':
case 'textarea':
Expand Down

0 comments on commit 93c3317

Please sign in to comment.