@@ -191,7 +191,7 @@ discard block |
||
| 191 | 191 | foreach ( Kirki::$panels as $panel_args ) { |
| 192 | 192 | // Extra checks for nested panels. |
| 193 | 193 | if ( isset( $panel_args['panel'] ) ) { |
| 194 | - if ( isset( Kirki::$panels[ $panel_args['panel'] ] ) ) { |
|
| 194 | + if ( isset( Kirki::$panels[$panel_args['panel']] ) ) { |
|
| 195 | 195 | // Set the type to nested. |
| 196 | 196 | $panel_args['type'] = 'kirki-nested'; |
| 197 | 197 | } |
@@ -213,11 +213,11 @@ discard block |
||
| 213 | 213 | foreach ( Kirki::$sections as $section_args ) { |
| 214 | 214 | // Extra checks for nested sections. |
| 215 | 215 | if ( isset( $section_args['section'] ) ) { |
| 216 | - if ( isset( Kirki::$sections[ $section_args['section'] ] ) ) { |
|
| 216 | + if ( isset( Kirki::$sections[$section_args['section']] ) ) { |
|
| 217 | 217 | // Set the type to nested. |
| 218 | 218 | $section_args['type'] = 'kirki-nested'; |
| 219 | 219 | // We need to check if the parent section is nested inside a panel. |
| 220 | - $parent_section = Kirki::$sections[ $section_args['section'] ]; |
|
| 220 | + $parent_section = Kirki::$sections[$section_args['section']]; |
|
| 221 | 221 | if ( isset( $parent_section['panel'] ) ) { |
| 222 | 222 | $section_args['panel'] = $parent_section['panel']; |
| 223 | 223 | } |
@@ -285,9 +285,9 @@ discard block |
||
| 285 | 285 | // and run it through the callback function. |
| 286 | 286 | // If no callback is defined (false) then just get the value. |
| 287 | 287 | if ( $variable_callback ) { |
| 288 | - $variables[ $variable_name ] = call_user_func( $field_variable['callback'], Kirki::get_option( $field['settings'] ) ); |
|
| 288 | + $variables[$variable_name] = call_user_func( $field_variable['callback'], Kirki::get_option( $field['settings'] ) ); |
|
| 289 | 289 | } else { |
| 290 | - $variables[ $variable_name ] = Kirki::get_option( $field['settings'] ); |
|
| 290 | + $variables[$variable_name] = Kirki::get_option( $field['settings'] ); |
|
| 291 | 291 | } |
| 292 | 292 | } |
| 293 | 293 | } |
@@ -339,7 +339,7 @@ discard block |
||
| 339 | 339 | * @since 3.0.0 |
| 340 | 340 | */ |
| 341 | 341 | public function customize_controls_enqueue_scripts() { |
| 342 | - wp_enqueue_script( 'kirki', trailingslashit( Kirki::$url ) . 'assets/js/customizer.js', array( 'jquery', 'customize-base') ); |
|
| 342 | + wp_enqueue_script( 'kirki', trailingslashit( Kirki::$url ) . 'assets/js/customizer.js', array( 'jquery', 'customize-base' ) ); |
|
| 343 | 343 | } |
| 344 | 344 | |
| 345 | 345 | /** |