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.
1 parent 5e7a2bd commit cbb385aCopy full SHA for cbb385a
classes/class-custom-typekit-fonts-render.php
@@ -240,9 +240,8 @@ function bb_custom_fonts( $bb_fonts ) {
240
*/
241
function remove_typekit_font_google_url( $fonts ) {
242
243
- $kit_list = get_option( 'custom-typekit-fonts' );
244
-
245
- if ( $kit_list ) {
+ $kit_list = get_option( 'custom-typekit-fonts', array() );
+ if ( ! empty( $kit_list['custom-typekit-font-details'] ) ) {
246
foreach ( $kit_list['custom-typekit-font-details'] as $key => $value ) {
247
$font_key = "'" . $value['family'] . "'" . ',' . $value['fallback'];
248
if ( array_key_exists( $font_key, $fonts ) ) {
0 commit comments