Completed
Push — develop ( 9969f2...58bd8c )
by Aristeides
04:07 queued 01:14
created
controls/typography/class-kirki-control-typography.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -160,8 +160,8 @@  discard block
 block discarded – undo
160 160
 
161 161
 		// Fix for https://github.com/aristath/kirki/issues/1405.
162 162
 		foreach ( array_keys( $this->json['value'] ) as $key ) {
163
-			if ( isset( $this->json['default'][ $key ] ) && false === $this->json['default'][ $key ] ) {
164
-				unset( $this->json['value'][ $key ] );
163
+			if ( isset( $this->json['default'][$key] ) && false === $this->json['default'][$key] ) {
164
+				unset( $this->json['value'][$key] );
165 165
 			}
166 166
 		}
167 167
 		$this->json['show_variants'] = ( true === Kirki_Fonts_Google::$force_load_all_variants ) ? false : true;
@@ -344,7 +344,7 @@  discard block
 block discarded – undo
344 344
 			if ( is_string( $variant ) ) {
345 345
 				$final_variants[] = array(
346 346
 					'id'    => $variant,
347
-					'label' => isset( $all_variants[ $variant ] ) ? $all_variants[ $variant ] : $variant,
347
+					'label' => isset( $all_variants[$variant] ) ? $all_variants[$variant] : $variant,
348 348
 				);
349 349
 			} elseif ( is_array( $variant ) && isset( $variant['id'] ) && isset( $variant['label'] ) ) {
350 350
 				$final_variants[] = $variant;
@@ -419,7 +419,7 @@  discard block
 block discarded – undo
419 419
 					if ( array_key_exists( $variant, $all_variants ) ) {
420 420
 						$available_variants[] = array(
421 421
 							'id' => $variant,
422
-							'label' => $all_variants[ $variant ],
422
+							'label' => $all_variants[$variant],
423 423
 						);
424 424
 					}
425 425
 				}
@@ -431,7 +431,7 @@  discard block
 block discarded – undo
431 431
 					if ( array_key_exists( $subset, $all_subsets ) ) {
432 432
 						$available_subsets[] = array(
433 433
 							'id' => $subset,
434
-							'label' => $all_subsets[ $subset ],
434
+							'label' => $all_subsets[$subset],
435 435
 						);
436 436
 					}
437 437
 				}
Please login to merge, or discard this patch.