@@ -184,11 +184,11 @@ |
||
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 | } |
@@ -71,7 +71,7 @@ |
||
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 ); |