From 01329d2b3dbd2e1dd2865a16b279d2a564c015d7 Mon Sep 17 00:00:00 2001 From: agata <automa@insicuri.net> Date: Thu, 2 Jul 2020 11:24:16 +0200 Subject: [PATCH] sistemato commento nel fix google font --- wp-content/themes/twentythirteen/functions.php | 18 +----------------- wp-content/themes/twentytwelve/functions.php | 18 +----------------- 2 files changed, 2 insertions(+), 34 deletions(-) diff --git a/wp-content/themes/twentythirteen/functions.php b/wp-content/themes/twentythirteen/functions.php index be4641bab..60c93029d 100644 --- a/wp-content/themes/twentythirteen/functions.php +++ b/wp-content/themes/twentythirteen/functions.php @@ -305,24 +305,8 @@ add_action( 'wp_enqueue_scripts', 'twentythirteen_scripts_styles' ); * @param string $relation_type The relation type the URLs are printed. * @return array URLs to print for resource hints. */ -/* -function twentythirteen_resource_hints( $urls, $relation_type ) { - if ( wp_style_is( 'twentythirteen-fonts', 'queue' ) && 'preconnect' === $relation_type ) { - if ( version_compare( $GLOBALS['wp_version'], '4.7-alpha', '>=' ) ) { - $urls[] = array( - 'href' => '', - 'crossorigin', - ); - } else { - $urls[] = ''; - /* AI fix google fonts */ - } - } - return $urls; -} -add_filter( 'wp_resource_hints', 'twentythirteen_resource_hints', 10, 2 ); -*/ + /* AI fix google fonts */ /** * Enqueue styles for the block-based editor. diff --git a/wp-content/themes/twentytwelve/functions.php b/wp-content/themes/twentytwelve/functions.php index 44cce96be..5cd0f9d21 100644 --- a/wp-content/themes/twentytwelve/functions.php +++ b/wp-content/themes/twentytwelve/functions.php @@ -208,24 +208,8 @@ add_action( 'enqueue_block_editor_assets', 'twentytwelve_block_editor_styles' ); * @param string $relation_type The relation type the URLs are printed. * @return array URLs to print for resource hints. */ -/* -function twentytwelve_resource_hints( $urls, $relation_type ) { - if ( wp_style_is( 'twentytwelve-fonts', 'queue' ) && 'preconnect' === $relation_type ) { - if ( version_compare( $GLOBALS['wp_version'], '4.7-alpha', '>=' ) ) { - $urls[] = array( - 'href' => '', - 'crossorigin', - ); - } else { - $urls[] = ''; - /*AI fix - font google*/ - } - } - return $urls; -} -add_filter( 'wp_resource_hints', 'twentytwelve_resource_hints', 10, 2 ); -*/ + /*AI fix - font google*/ /** * Filter TinyMCE CSS path to include Google Fonts. -- GitLab