@@ -43,8 +43,8 @@ |
||
| 43 | 43 | // Add backup font. |
| 44 | 44 | if ( Kirki_Fonts::is_google_font( $family ) ) { |
| 45 | 45 | |
| 46 | - if ( '' === $backup && isset( $google_fonts_array[ $family ] ) && isset( $backup_fonts[ $google_fonts_array[ $family ]['category'] ] ) ) { |
|
| 47 | - $backup = $backup_fonts[ $google_fonts_array[ $family ]['category'] ]; |
|
| 46 | + if ( '' === $backup && isset( $google_fonts_array[$family] ) && isset( $backup_fonts[$google_fonts_array[$family]['category']] ) ) { |
|
| 47 | + $backup = $backup_fonts[$google_fonts_array[$family]['category']]; |
|
| 48 | 48 | } |
| 49 | 49 | |
| 50 | 50 | // Add double quotes if needed. |
@@ -47,14 +47,14 @@ discard block |
||
| 47 | 47 | ); |
| 48 | 48 | |
| 49 | 49 | foreach ( $properties as $property ) { |
| 50 | - if ( ! isset( $value[ $property ] ) || '' === $value[ $property ] ) { |
|
| 50 | + if ( ! isset( $value[$property] ) || '' === $value[$property] ) { |
|
| 51 | 51 | continue; |
| 52 | 52 | } |
| 53 | 53 | if ( isset( $output['choice'] ) && $output['choice'] !== $property ) { |
| 54 | 54 | continue; |
| 55 | 55 | } |
| 56 | 56 | |
| 57 | - $property_value = $this->process_property_value( $property, $value[ $property ] ); |
|
| 57 | + $property_value = $this->process_property_value( $property, $value[$property] ); |
|
| 58 | 58 | if ( 'font-family' === $property ) { |
| 59 | 59 | $value['font-backup'] = ( isset( $value['font-backup'] ) ) ? $value['font-backup'] : ''; |
| 60 | 60 | $property_value = $this->process_property_value( $property, array( |
@@ -62,7 +62,7 @@ discard block |
||
| 62 | 62 | $value['font-backup'], |
| 63 | 63 | ) ); |
| 64 | 64 | } |
| 65 | - $this->styles[ $output['media_query'] ][ $output['element'] ][ $property ] = $output['prefix'] . $property_value . $output['suffix']; |
|
| 65 | + $this->styles[$output['media_query']][$output['element']][$property] = $output['prefix'] . $property_value . $output['suffix']; |
|
| 66 | 66 | } |
| 67 | 67 | } |
| 68 | 68 | } |