diff --git a/acf-typography-v5.php b/acf-typography-v5.php index 062107d..aa246fb 100644 --- a/acf-typography-v5.php +++ b/acf-typography-v5.php @@ -733,7 +733,7 @@ function validate_value( $valid, $value, $field, $input ){ if (empty($value['font-family']) || empty($value['font-weight']) || empty($value['backupfont']) || empty($value['text_align']) || empty($value['direction']) || empty($value['font_style']) || empty($value['font_size']) || empty($value['line_height']) - || empty($value['letter_spacing']) || empty($value['text-color'])) { + || empty($value['text-color'])) { $set = 0; $txt = __('The value is empty!! : ','acf-typography'); @@ -776,15 +776,12 @@ function validate_value( $valid, $value, $field, $input ){ $txt .= __('line height, ','acf-typography'); $set = 1; } - - if( empty($value['letter_spacing']) & $field['show_letter_spacing']){ - $txt .= __('letter spacing, ','acf-typography'); - $set = 1; - } + if( empty($value['text-color']) & $field['show_color_picker']){ $txt .= __('text color, ','acf-typography'); $set = 1; } + if ($set) { $valid = $txt; }