diff --git a/wp-content/themes/twentythirteen/functions.php b/wp-content/themes/twentythirteen/functions.php index be4641bab372bfa2263e01e6e156bd5d6f10ac0c..60c93029d6777f9ab20bb0dc8747af7ccfab82e5 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 44cce96be7e07e9fccf2f5049ab63324e18fee08..5cd0f9d2136afbf23c97c53b8c51f6784d406191 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.