@@ -187,7 +187,7 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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 | } |
@@ -42,7 +42,7 @@ |
||
| 42 | 42 | 'type', |
| 43 | 43 | 'description_hidden', |
| 44 | 44 | 'section', |
| 45 | - )); |
|
| 45 | + ) ); |
|
| 46 | 46 | |
| 47 | 47 | $array['title'] = html_entity_decode( $this->title, ENT_QUOTES, get_bloginfo( 'charset' ) ); |
| 48 | 48 | $array['content'] = $this->get_content(); |
@@ -47,7 +47,7 @@ |
||
| 47 | 47 | 'priority', |
| 48 | 48 | 'type', |
| 49 | 49 | 'panel', |
| 50 | - )); |
|
| 50 | + ) ); |
|
| 51 | 51 | |
| 52 | 52 | $array['title'] = html_entity_decode( $this->title, ENT_QUOTES, get_bloginfo( 'charset' ) ); |
| 53 | 53 | $array['content'] = $this->get_content(); |