Moved tel to other types that use same sanitization

This commit is contained in:
Yurii Nalivaiko
2024-07-29 15:01:28 +02:00
parent 744362706a
commit 518e84d27f
+1 -3
View File
@@ -856,6 +856,7 @@ if ( ! class_exists( 'um\core\Form' ) ) {
case 'vimeo_video':
case 'soundcloud_track':
case 'spotify':
case 'tel':
$form[ $k ] = sanitize_text_field( $form[ $k ] );
break;
case 'multiselect':
@@ -863,9 +864,6 @@ if ( ! class_exists( 'um\core\Form' ) ) {
case 'checkbox':
$form[ $k ] = is_array( $form[ $k ] ) ? array_map( 'sanitize_text_field', $form[ $k ] ) : sanitize_text_field( $form[ $k ] );
break;
case 'tel':
$form[ $k ] = sanitize_text_field( $field );
break;
}
}
}