Completed
Push — develop ( 1afbdc...5783f5 )
by Aristeides
03:25
created
modules/css/property/class-kirki-output-property-font-family.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -43,8 +43,8 @@
 block discarded – undo
43 43
 		// Add backup font.
44 44
 		if ( Kirki_Fonts::is_google_font( $family ) ) {
45 45
 
46
-			if ( '' === $backup && isset( $google_fonts_array[ $family ] ) && isset( $backup_fonts[ $google_fonts_array[ $family ]['category'] ] ) ) {
47
-				$backup = $backup_fonts[ $google_fonts_array[ $family ]['category'] ];
46
+			if ( '' === $backup && isset( $google_fonts_array[$family] ) && isset( $backup_fonts[$google_fonts_array[$family]['category']] ) ) {
47
+				$backup = $backup_fonts[$google_fonts_array[$family]['category']];
48 48
 			}
49 49
 
50 50
 			// Add double quotes if needed.
Please login to merge, or discard this patch.
modules/css/field/class-kirki-output-field-typography.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -47,14 +47,14 @@  discard block
 block discarded – undo
47 47
 		);
48 48
 
49 49
 		foreach ( $properties as $property ) {
50
-			if ( ! isset( $value[ $property ] ) || '' === $value[ $property ] ) {
50
+			if ( ! isset( $value[$property] ) || '' === $value[$property] ) {
51 51
 				continue;
52 52
 			}
53 53
 			if ( isset( $output['choice'] ) && $output['choice'] !== $property ) {
54 54
 				continue;
55 55
 			}
56 56
 
57
-			$property_value = $this->process_property_value( $property, $value[ $property ] );
57
+			$property_value = $this->process_property_value( $property, $value[$property] );
58 58
 			if ( 'font-family' === $property ) {
59 59
 				$value['font-backup'] = ( isset( $value['font-backup'] ) ) ? $value['font-backup'] : '';
60 60
 				$property_value = $this->process_property_value( $property, array(
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
 					$value['font-backup'],
63 63
 				) );
64 64
 			}
65
-			$this->styles[ $output['media_query'] ][ $output['element'] ][ $property ] = $output['prefix'] . $property_value . $output['suffix'];
65
+			$this->styles[$output['media_query']][$output['element']][$property] = $output['prefix'] . $property_value . $output['suffix'];
66 66
 		}
67 67
 	}
68 68
 }
Please login to merge, or discard this patch.