We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8156803 + 2b75612 commit 90ccb58Copy full SHA for 90ccb58
classes/class-custom-typekit-fonts-render.php
@@ -247,6 +247,10 @@ function remove_typekit_font_google_url( $fonts ) {
247
$kit_list = get_option( 'custom-typekit-fonts', array() );
248
if ( ! empty( $kit_list['custom-typekit-font-details'] ) ) {
249
foreach ( $kit_list['custom-typekit-font-details'] as $key => $value ) {
250
+ $font_key = "'" . $value['family'] . "'" . ',' . $value['fallback'];
251
+ if ( array_key_exists( $font_key, $fonts ) ) {
252
+ unset( $fonts[ $font_key ] );
253
+ }
254
if ( array_key_exists( $key, $fonts ) ) {
255
unset( $fonts[ $key ] );
256
}
0 commit comments