Completed
Push — develop ( 6cbd2d...94cfba )
by Aristeides
18s
created
modules/postmessage/class-kirki-modules-postmessage.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -89,10 +89,10 @@  discard block
 block discarded – undo
89 89
 			if ( isset( $args['function'] ) && 'html' !== $args['function'] ) {
90 90
 				$callback = $this->get_callback( $args );
91 91
 				if ( is_callable( $callback ) ) {
92
-					$field['scripts'][ $key ] = call_user_func_array( $callback, array( $js_var, $args ) );
92
+					$field['scripts'][$key] = call_user_func_array( $callback, array( $js_var, $args ) );
93 93
 					continue;
94 94
 				}
95
-				$field['scripts'][ $key ] = $this->script_var( $js_var );
95
+				$field['scripts'][$key] = $this->script_var( $js_var );
96 96
 			}
97 97
 		}
98 98
 		$combo_extra_script = '';
@@ -268,7 +268,7 @@  discard block
 block discarded – undo
268 268
 			'font-weight'    => 'fontWeight',
269 269
 			'font-style'     => 'fontStyle',
270 270
 		);
271
-		$choice_condition = ( isset( $args['choice'] ) && '' !== $args['choice'] && isset( $css_build_array[ $args['choice'] ] ) );
271
+		$choice_condition = ( isset( $args['choice'] ) && '' !== $args['choice'] && isset( $css_build_array[$args['choice']] ) );
272 272
 		$script .= ( ! $choice_condition ) ? $webfont_loader : '';
273 273
 		foreach ( $css_build_array as $property => $var ) {
274 274
 			if ( $choice_condition && $property !== $args['choice'] ) {
@@ -339,7 +339,7 @@  discard block
 block discarded – undo
339 339
 			'units'         => '',
340 340
 			'js_callback'   => array( '', '' ),
341 341
 			'value_pattern' => '',
342
-		));
342
+		) );
343 343
 
344 344
 		// Element should be a string.
345 345
 		if ( is_array( $args['element'] ) ) {
Please login to merge, or discard this patch.