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