Completed
Push — develop ( 9f3e22...fba03d )
by Aristeides
02:33
created
modules/css/class-kirki-modules-css.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -184,11 +184,11 @@
 block discarded – undo
184 184
 
185 185
 			// Only continue if $field['output'] is set.
186 186
 			if ( isset( $field['output'] ) && ! empty( $field['output'] ) ) {
187
-				$css  = Kirki_Helper::array_replace_recursive( $css, Kirki_Modules_CSS_Generator::css( $field ) );
187
+				$css = Kirki_Helper::array_replace_recursive( $css, Kirki_Modules_CSS_Generator::css( $field ) );
188 188
 
189 189
 				// Add the globals.
190
-				if ( isset( self::$css_array[ $config_id ] ) && ! empty( self::$css_array[ $config_id ] ) ) {
191
-					Kirki_Helper::array_replace_recursive( $css, self::$css_array[ $config_id ] );
190
+				if ( isset( self::$css_array[$config_id] ) && ! empty( self::$css_array[$config_id] ) ) {
191
+					Kirki_Helper::array_replace_recursive( $css, self::$css_array[$config_id] );
192 192
 				}
193 193
 			}
194 194
 		}
Please login to merge, or discard this patch.
field/class-kirki-field-number.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -71,7 +71,7 @@
 block discarded – undo
71 71
 			$step  = ( is_numeric( $this->choices['step'] ) ) ? $this->choices['step'] : intval( $this->choices['step'] );
72 72
 			$valid = range( $min, $max, $step );
73 73
 			foreach ( $valid as $possible_value ) {
74
-				$smallest[ $possible_value ] = abs( $possible_value - $value );
74
+				$smallest[$possible_value] = abs( $possible_value - $value );
75 75
 			}
76 76
 			asort( $smallest );
77 77
 			$value = key( $smallest );
Please login to merge, or discard this patch.