From 4e1fcbd90bdb1e1bf0a307f7b973d0d74c66598c Mon Sep 17 00:00:00 2001 From: Mykyta Synelnikov Date: Tue, 15 Aug 2023 17:39:28 +0300 Subject: [PATCH] - fixed max chars validation for user description field in header; --- includes/core/um-actions-form.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/core/um-actions-form.php b/includes/core/um-actions-form.php index 9ed569e3..44e72695 100644 --- a/includes/core/um-actions-form.php +++ b/includes/core/um-actions-form.php @@ -598,7 +598,7 @@ function um_submit_form_errors_hook_( $submitted_data, $form_data ) { } } - if ( isset( $array['max_chars'] ) && $array['max_chars'] > 0 ) { + if ( ! empty( $array['max_chars'] ) && UM()->profile()->get_show_bio_key( $submitted_data ) !== $key ) { if ( ! empty( $array['html'] ) ) { // Count words without html tags when HTML is enabled. $text_value = wp_strip_all_tags( $submitted_data[ $key ] );