Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
noblogs-composer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Container registry
Model registry
Monitor
Service Desk
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Noblogs
noblogs-composer
Commits
d1ab8d04
Commit
d1ab8d04
authored
4 years ago
by
ale
Browse files
Options
Downloads
Patches
Plain Diff
Fix cr/lf for 0187-twentyseventeen
Related to issue
#15
.
parent
e8e92e5b
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
patches/themes/0187-twentyseventeen.patch
+18
-21
18 additions, 21 deletions
patches/themes/0187-twentyseventeen.patch
with
18 additions
and
21 deletions
patches/themes/0187-twentyseventeen.patch
+
18
−
21
View file @
d1ab8d04
...
...
@@ -2,24 +2,21 @@ diff --git a/wp-content/themes/twentyseventeen/functions.php b/wp-content/themes
index 1ef1b570..952da193 100644
--- a/wp-content/themes/twentyseventeen/functions.php
+++ b/wp-content/themes/twentyseventeen/functions.php
@@ -299,8 +299,8 @@
function twentyseventeen_fonts_url() {
'subset' => urlencode( 'latin,latin-ext' ),
'display' => urlencode( 'fallback' ),
);
-
- $fonts_url = add_query_arg( $query_args, 'https://fonts.googleapis.com/css' );
+ // A/I removed google fonts
+ $fonts_url = add_query_arg( $query_args, '' );
}
return esc_url_raw( $fonts_url );
@@ -318,7 +318,8 @@
function twentyseventeen_fonts_url() {
function twentyseventeen_resource_hints( $urls, $relation_type ) {
if ( wp_style_is( 'twentyseventeen-fonts', 'queue' ) && 'preconnect' === $relation_type ) {
$urls[] = array(
- 'href' => 'https://fonts.gstatic.com',
+ // A/I removed google Fonts
+ 'href' => '',
'crossorigin',
);
}
@@ -306,7 +306,7 @@
'display' => urlencode( 'fallback' ),
);
- $fonts_url = add_query_arg( $query_args, 'https://fonts.googleapis.com/css' );
+ $fonts_url = add_query_arg( $query_args, '' );
}
return esc_url_raw( $fonts_url );
@@ -324,7 +324,7 @@
function twentyseventeen_resource_hints( $urls, $relation_type ) {
if ( wp_style_is( 'twentyseventeen-fonts', 'queue' ) && 'preconnect' === $relation_type ) {
$urls[] = array(
- 'href' => 'https://fonts.gstatic.com',
+ 'href' => '',
'crossorigin',
);
}
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