Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
noblogs-wp
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ai
noblogs-wp
Commits
6cd65880
Commit
6cd65880
authored
4 years ago
by
agata
Browse files
Options
Downloads
Patches
Plain Diff
sistemato commento nel fix google font
parent
07b2728d
Branches
Branches containing commit
Tags
noblogs5.6p2
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
wp-content/themes/twentythirteen/functions.php
+1
-17
1 addition, 17 deletions
wp-content/themes/twentythirteen/functions.php
wp-content/themes/twentytwelve/functions.php
+1
-17
1 addition, 17 deletions
wp-content/themes/twentytwelve/functions.php
with
2 additions
and
34 deletions
wp-content/themes/twentythirteen/functions.php
+
1
−
17
View file @
6cd65880
...
...
@@ -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.
...
...
This diff is collapsed.
Click to expand it.
wp-content/themes/twentytwelve/functions.php
+
1
−
17
View file @
6cd65880
...
...
@@ -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.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment