|
@@ -77,7 +77,7 @@ discard block |
|
|
block discarded – undo |
|
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 |
|
|
block discarded – undo |
|
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 ); |
|
|
114
|
+ $fonts_to_load[ ] = $font . ':' . join( ',', $weights ); |
|
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 ) ) { |
Please login to merge, or discard this patch.