Completed
Push — develop ( a19966...06fcd3 )
by Aristeides
08:16 queued 05:03
created
core/class-kirki-init.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -187,7 +187,7 @@  discard block
 block discarded – undo
187 187
 			foreach ( Kirki::$panels as $panel_args ) {
188 188
 				// Extra checks for nested panels.
189 189
 				if ( isset( $panel_args['panel'] ) ) {
190
-					if ( isset( Kirki::$panels[ $panel_args['panel'] ] ) ) {
190
+					if ( isset( Kirki::$panels[$panel_args['panel']] ) ) {
191 191
 						// Set the type to nested.
192 192
 						$panel_args['type'] = 'kirki-nested';
193 193
 					}
@@ -209,11 +209,11 @@  discard block
 block discarded – undo
209 209
 			foreach ( Kirki::$sections as $section_args ) {
210 210
 				// Extra checks for nested sections.
211 211
 				if ( isset( $section_args['section'] ) ) {
212
-					if ( isset( Kirki::$sections[ $section_args['section'] ] ) ) {
212
+					if ( isset( Kirki::$sections[$section_args['section']] ) ) {
213 213
 						// Set the type to nested.
214 214
 						$section_args['type'] = 'kirki-nested';
215 215
 						// We need to check if the parent section is nested inside a panel.
216
-						$parent_section = Kirki::$sections[ $section_args['section'] ];
216
+						$parent_section = Kirki::$sections[$section_args['section']];
217 217
 						if ( isset( $parent_section['panel'] ) ) {
218 218
 							$section_args['panel'] = $parent_section['panel'];
219 219
 						}
@@ -281,9 +281,9 @@  discard block
 block discarded – undo
281 281
 						// and run it through the callback function.
282 282
 						// If no callback is defined (false) then just get the value.
283 283
 						if ( $variable_callback ) {
284
-							$variables[ $variable_name ] = call_user_func( $field_variable['callback'], Kirki::get_option( $field['settings'] ) );
284
+							$variables[$variable_name] = call_user_func( $field_variable['callback'], Kirki::get_option( $field['settings'] ) );
285 285
 						} else {
286
-							$variables[ $variable_name ] = Kirki::get_option( $field['settings'] );
286
+							$variables[$variable_name] = Kirki::get_option( $field['settings'] );
287 287
 						}
288 288
 					}
289 289
 				}
Please login to merge, or discard this patch.