@@ -77,7 +77,7 @@ discard block |
||
77 | 77 | $fonts_to_load = $this->googlefonts->fonts; |
78 | 78 | |
79 | 79 | if ( ! empty( $fonts_to_load ) && 'preconnect' === $relation_type ) { |
80 | - $urls[] = array( |
|
80 | + $urls[ ] = array( |
|
81 | 81 | 'href' => 'https://fonts.gstatic.com', |
82 | 82 | 'crossorigin', |
83 | 83 | ); |
@@ -111,7 +111,7 @@ discard block |
||
111 | 111 | $weights[ $key ] = str_replace( array( 'regular', 'bold', 'italic' ), array( '400', '', 'i' ), $value ); |
112 | 112 | } |
113 | 113 | } |
114 | - $fonts_to_load[] = $font . ':' . join( ',', $weights ) . ':cyrillic,cyrillic-ext,devanagari,greek,greek-ext,khmer,latin,latin-ext,vietnamese,hebrew,arabic,bengali,gujarati,tamil,telugu,thai'; |
|
114 | + $fonts_to_load[ ] = $font . ':' . join( ',', $weights ) . ':cyrillic,cyrillic-ext,devanagari,greek,greek-ext,khmer,latin,latin-ext,vietnamese,hebrew,arabic,bengali,gujarati,tamil,telugu,thai'; |
|
115 | 115 | } |
116 | 116 | wp_enqueue_script( 'webfont-loader', 'https://ajax.googleapis.com/ajax/libs/webfont/1.6.26/webfont.js', array(), KIRKI_VERSION ); |
117 | 117 | if ( empty( $fonts_to_load ) ) { |