- fixed max chars validation for user description field in header;

This commit is contained in:
Mykyta Synelnikov
2023-08-15 17:39:28 +03:00
parent 89ec90dd77
commit 4e1fcbd90b
+1 -1
View File
@@ -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 ] );