Commit 885d9d43 authored by agata's avatar agata

sistemato commento nel fix google font

parent fb026f60
......@@ -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.
......
......@@ -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.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment