Completed
Push — develop ( 441712...54f8dd )
by Aristeides
02:29
created
field/class-kirki-field-typography.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
 
35 35
 		// Accomodate the use of font-weight and convert to variant.
36 36
 		if ( isset( $this->default['font-weight'] ) ) {
37
-			$this->default['variant'] = ( 'regular' === $this->default['font-weight'] ) ? 400 : (string) intval( $this->default['font-weight' ] );
37
+			$this->default['variant'] = ( 'regular' === $this->default['font-weight'] ) ? 400 : (string) intval( $this->default['font-weight'] );
38 38
 		}
39 39
 
40 40
 		// Make sure letter-spacing has units.
@@ -192,7 +192,7 @@  discard block
 block discarded – undo
192 192
 		foreach ( $value as $key => $subvalue ) {
193 193
 
194 194
 			if ( in_array( $key, array( 'font-size', 'letter-spacing', 'word-spacing', 'line-height' ), true ) ) {
195
-				$value[ $key ] = Kirki_Sanitize_Values::css_dimension( $value[ $key ] );
195
+				$value[$key] = Kirki_Sanitize_Values::css_dimension( $value[$key] );
196 196
 			} elseif ( 'text-align' === $key && ! in_array( $value['text-align'], array( 'inherit', 'left', 'center', 'right', 'justify' ), true ) ) {
197 197
 				$value['text-align'] = 'inherit';
198 198
 			} elseif ( 'text-transform' === $key && ! in_array( $value['text-transform'], array( 'none', 'capitalize', 'uppercase', 'lowercase', 'initial', 'inherit' ), true ) ) {
Please login to merge, or discard this patch.