- wpcs;
This commit is contained in:
Mykyta Synelnikov
2023-11-21 15:28:20 +02:00
parent 57fc9fda0a
commit 5d750f35dc
3 changed files with 9 additions and 9 deletions
+1 -1
View File
@@ -752,7 +752,7 @@ if ( ! class_exists( 'um\core\Form' ) ) {
$form[ $k ] = apply_filters( 'um_sanitize_form_field', $form[ $k ], $field );
break;
case 'number':
$form[ $k ] = (int) $form[ $k ];
$form[ $k ] = '' !== $form[ $k ] ? (int) $form[ $k ] : '';
break;
case 'textarea':
if ( ! empty( $field['html'] ) || ( UM()->profile()->get_show_bio_key( $form ) === $k && UM()->options()->get( 'profile_show_html_bio' ) ) ) {