Skip to content

Commit 93c3317

Browse files
committed
Remove number from get_field_ids
1 parent c799172 commit 93c3317

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

projects/packages/forms/src/contact-form/class-contact-form.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -715,6 +715,10 @@ public static function get_compiled_form_for_email( $feedback_id, $form ) {
715715
* @return string
716716
*/
717717
public static function escape_and_sanitize_field_value( $value ) {
718+
if ( $value === null ) {
719+
return '';
720+
}
721+
718722
$value = str_replace( array( '[', ']' ), array( '[', ']' ), $value );
719723
return nl2br( wp_kses( $value, array() ) );
720724
}
@@ -980,7 +984,6 @@ public function get_field_ids() {
980984
switch ( $type ) {
981985
case 'email':
982986
case 'name':
983-
case 'number':
984987
case 'url':
985988
case 'subject':
986989
case 'textarea':

0 commit comments

Comments
 (0)