mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-06-05 15:09:37 +09:00
- fixed max chars validation for user description field in header;
This commit is contained in:
@@ -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 ] );
|
||||
|
||||
Reference in New Issue
Block a user