Completed
Push — develop ( ac771f...dcd6b8 )
by Aristeides
02:40
created
field/class-kirki-field-typography.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -205,7 +205,7 @@  discard block
 block discarded – undo
205 205
 				case 'letter-spacing':
206 206
 				case 'word-spacing':
207 207
 				case 'line-height':
208
-					$value[ $key ] = Kirki_Sanitize_Values::css_dimension( $val );
208
+					$value[$key] = Kirki_Sanitize_Values::css_dimension( $val );
209 209
 					break;
210 210
 				case 'text-align':
211 211
 					if ( ! in_array( $val, array( 'inherit', 'left', 'center', 'right', 'justify' ), true ) ) {
@@ -224,8 +224,8 @@  discard block
 block discarded – undo
224 224
 		} // End foreach().
225 225
 
226 226
 		foreach ( array( 'font-size', 'letter-spacing', 'word-spacing', 'line-height', 'text-align', 'color' ) as $property ) {
227
-			if ( is_array( self::$static_default ) && ! isset( self::$static_default[ $property ] ) ) {
228
-				unset( $value[ $property ] );
227
+			if ( is_array( self::$static_default ) && ! isset( self::$static_default[$property] ) ) {
228
+				unset( $value[$property] );
229 229
 			}
230 230
 		}
231 231
 		return $value;
Please login to merge, or discard this patch.