@@ -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( array( $field_variable['callback'], Kirki::get_option( $field['settings'] ) ) ); |
|
288 | + $variables[$variable_name] = call_user_func( array( $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 | } |
@@ -87,7 +87,7 @@ discard block |
||
87 | 87 | if ( class_exists( $module_class ) ) { |
88 | 88 | // Use this syntax instead of $module_class::get_instance() |
89 | 89 | // for PHP 5.2 compatibility. |
90 | - self::$active_modules[ $key ] = call_user_func( array( $module_class, 'get_instance' ) ); |
|
90 | + self::$active_modules[$key] = call_user_func( array( $module_class, 'get_instance' ) ); |
|
91 | 91 | } |
92 | 92 | } |
93 | 93 | } |
@@ -120,7 +120,7 @@ discard block |
||
120 | 120 | |
121 | 121 | $key = array_search( $module, self::$modules, true ); |
122 | 122 | if ( false !== $key ) { |
123 | - unset( self::$modules[ $key ] ); |
|
123 | + unset( self::$modules[$key] ); |
|
124 | 124 | } |
125 | 125 | } |
126 | 126 |