Skip to content
Snippets Groups Projects
Commit 6cd65880 authored by agata's avatar agata
Browse files

sistemato commento nel fix google font

parent 07b2728d
Branches
Tags noblogs5.6p2
No related merge requests found
......@@ -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.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment