@@ -44,14 +44,14 @@ discard block |
||
| 44 | 44 | ); |
| 45 | 45 | |
| 46 | 46 | foreach ( $properties as $property ) { |
| 47 | - if ( ! isset( $value[ $property ] ) || ! $value[ $property ] ) { |
|
| 47 | + if ( ! isset( $value[$property] ) || ! $value[$property] ) { |
|
| 48 | 48 | continue; |
| 49 | 49 | } |
| 50 | 50 | if ( isset( $output['choice'] ) && $output['choice'] !== $property ) { |
| 51 | 51 | continue; |
| 52 | 52 | } |
| 53 | 53 | |
| 54 | - $property_value = $this->process_property_value( $property, $value[ $property ] ); |
|
| 54 | + $property_value = $this->process_property_value( $property, $value[$property] ); |
|
| 55 | 55 | if ( 'font-family' === $property ) { |
| 56 | 56 | $value['font-backup'] = ( isset( $value['font-backup'] ) ) ? $value['font-backup'] : ''; |
| 57 | 57 | $property_value = $this->process_property_value( $property, array( |
@@ -60,7 +60,7 @@ discard block |
||
| 60 | 60 | ) ); |
| 61 | 61 | } |
| 62 | 62 | $property_value = ( is_array( $property_value ) && isset( $property_value[0] ) ) ? $property_value[0] : $property_value; |
| 63 | - $this->styles[ $output['media_query'] ][ $output['element'] ][ $property ] = $output['prefix'] . $property_value . $output['suffix']; |
|
| 63 | + $this->styles[$output['media_query']][$output['element']][$property] = $output['prefix'] . $property_value . $output['suffix']; |
|
| 64 | 64 | } |
| 65 | 65 | } |
| 66 | 66 | } |
@@ -176,8 +176,8 @@ discard block |
||
| 176 | 176 | |
| 177 | 177 | // Fix for https://github.com/aristath/kirki/issues/1405. |
| 178 | 178 | foreach ( $this->json['value'] as $key => $val ) { |
| 179 | - if ( isset( $this->json['default'][ $key ] ) && false === $this->json['default'][ $key ] ) { |
|
| 180 | - unset( $this->json['value'][ $key ] ); |
|
| 179 | + if ( isset( $this->json['default'][$key] ) && false === $this->json['default'][$key] ) { |
|
| 180 | + unset( $this->json['value'][$key] ); |
|
| 181 | 181 | } |
| 182 | 182 | } |
| 183 | 183 | $this->json['show_variants'] = ( true === Kirki_Fonts_Google::$force_load_all_variants ) ? false : true; |
@@ -361,7 +361,7 @@ discard block |
||
| 361 | 361 | if ( is_string( $variant ) ) { |
| 362 | 362 | $final_variants[] = array( |
| 363 | 363 | 'id' => $variant, |
| 364 | - 'label' => isset( $all_variants[ $variant ] ) ? $all_variants[ $variant ] : $variant, |
|
| 364 | + 'label' => isset( $all_variants[$variant] ) ? $all_variants[$variant] : $variant, |
|
| 365 | 365 | ); |
| 366 | 366 | } elseif ( is_array( $variant ) && isset( $variant['id'] ) && isset( $variant['label'] ) ) { |
| 367 | 367 | $final_variants[] = $variant; |
@@ -435,7 +435,7 @@ discard block |
||
| 435 | 435 | if ( array_key_exists( $variant, $all_variants ) ) { |
| 436 | 436 | $available_variants[] = array( |
| 437 | 437 | 'id' => $variant, |
| 438 | - 'label' => $all_variants[ $variant ], |
|
| 438 | + 'label' => $all_variants[$variant], |
|
| 439 | 439 | ); |
| 440 | 440 | } |
| 441 | 441 | } |
@@ -445,7 +445,7 @@ discard block |
||
| 445 | 445 | if ( array_key_exists( $subset, $all_subsets ) ) { |
| 446 | 446 | $available_subsets[] = array( |
| 447 | 447 | 'id' => $subset, |
| 448 | - 'label' => $all_subsets[ $subset ], |
|
| 448 | + 'label' => $all_subsets[$subset], |
|
| 449 | 449 | ); |
| 450 | 450 | } |
| 451 | 451 | } |