From 2e6a66bf32daf9f9d64aee0c04c04934d1541383 Mon Sep 17 00:00:00 2001 From: Rahul Verma Date: Tue, 24 May 2016 12:51:28 +0530 Subject: [PATCH] fixes #977 --- .../output/field/class-kirki-output-field-typography.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/includes/output/field/class-kirki-output-field-typography.php b/includes/output/field/class-kirki-output-field-typography.php index 52fc0c310..3b7585279 100644 --- a/includes/output/field/class-kirki-output-field-typography.php +++ b/includes/output/field/class-kirki-output-field-typography.php @@ -51,9 +51,8 @@ protected function process_output( $output, $value ) { // Is this italic? $is_italic = ( false !== strpos( $value['variant'], 'italic' ) ); $this->styles[ $output['media_query'] ][ $output['element'] ]['font-weight'] = $font_weight; - if ( $is_italic ) { - $this->styles[ $output['media_query'] ][ $output['element'] ]['font-style'] = 'italic'; - } + $font_style = $is_italic ? 'italic' : 'normal' ; + $this->styles[ $output['media_query'] ][ $output['element'] ]['font-style'] = $font_style; } // Take care of font-size.