Skip to content

Commit e87b662

Browse files
committed
fix failing tests
1 parent ddbf143 commit e87b662

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

field/class-kirki-field-typography.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ public static function sanitize( $value ) {
182182
$value[ $key ] = Kirki_Sanitize_Values::css_dimension( $val );
183183
break;
184184
case 'text-align':
185-
if ( ! in_array( $val, array( 'inherit', 'left', 'center', 'right', 'justify' ), true ) ) {
185+
if ( ! in_array( $val, array( 'inherit', 'left', 'center', 'right', 'justify' ), true ) ) {
186186
$value['text-align'] = 'inherit';
187187
}
188188
break;
@@ -194,8 +194,8 @@ public static function sanitize( $value ) {
194194
case 'color':
195195
$value['color'] = ariColor::newColor( $val )->toCSS( 'hex' );
196196
break;
197-
}
198-
}
197+
} // End switch().
198+
} // End foreach().
199199
return $value;
200200
}
201201

modules/css/class-kirki-output.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ protected function apply_value_pattern( $output, $value ) {
158158
return $value;
159159
}
160160
$value = str_replace( $search, $replacement, $value );
161-
}
161+
} // End foreach().
162162
} // End if().
163163
} // End if().
164164

0 commit comments

Comments
 (0)