@@ -168,7 +168,7 @@ discard block |
||
168 | 168 | $control_types = apply_filters( 'kirki/control_types', array() ); |
169 | 169 | foreach ( $control_types as $key => $classname ) { |
170 | 170 | if ( ! class_exists( $classname ) ) { |
171 | - unset( $control_types[ $key ] ); |
|
171 | + unset( $control_types[$key] ); |
|
172 | 172 | } |
173 | 173 | } |
174 | 174 | |
@@ -196,7 +196,7 @@ discard block |
||
196 | 196 | foreach ( Kirki::$panels as $panel_args ) { |
197 | 197 | // Extra checks for nested panels. |
198 | 198 | if ( isset( $panel_args['panel'] ) ) { |
199 | - if ( isset( Kirki::$panels[ $panel_args['panel'] ] ) ) { |
|
199 | + if ( isset( Kirki::$panels[$panel_args['panel']] ) ) { |
|
200 | 200 | // Set the type to nested. |
201 | 201 | $panel_args['type'] = 'kirki-nested'; |
202 | 202 | } |
@@ -218,11 +218,11 @@ discard block |
||
218 | 218 | foreach ( Kirki::$sections as $section_args ) { |
219 | 219 | // Extra checks for nested sections. |
220 | 220 | if ( isset( $section_args['section'] ) ) { |
221 | - if ( isset( Kirki::$sections[ $section_args['section'] ] ) ) { |
|
221 | + if ( isset( Kirki::$sections[$section_args['section']] ) ) { |
|
222 | 222 | // Set the type to nested. |
223 | 223 | $section_args['type'] = 'kirki-nested'; |
224 | 224 | // We need to check if the parent section is nested inside a panel. |
225 | - $parent_section = Kirki::$sections[ $section_args['section'] ]; |
|
225 | + $parent_section = Kirki::$sections[$section_args['section']]; |
|
226 | 226 | if ( isset( $parent_section['panel'] ) ) { |
227 | 227 | $section_args['panel'] = $parent_section['panel']; |
228 | 228 | } |