diff --git a/modules/css/field/class-kirki-output-field-background.php b/modules/css/field/class-kirki-output-field-background.php index 0854647e2..90cbf3e99 100644 --- a/modules/css/field/class-kirki-output-field-background.php +++ b/modules/css/field/class-kirki-output-field-background.php @@ -36,7 +36,7 @@ protected function process_output( $output, $value ) { foreach ( array( 'background-image', 'background-color', 'background-repeat', 'background-position', 'background-size', 'background-attachment' ) as $property ) { // See https://github.com/aristath/kirki/issues/1808. - if ( 'background-color' === $property && ( ! isset( $value['background-image'] ) || empty( $value['background-image'] ) ) ) { + if ( 'background-color' === $property && isset( $value['background-color'] ) && ( ! isset( $value['background-image'] ) || empty( $value['background-image'] ) ) ) { $this->styles[ $output['media_query'] ][ $output['element'] ]['background'] = $output['prefix'] . $this->process_property_value( $property, $value[ $property ] ) . $output['suffix']; }