diff --git a/patches/themes/0187-twentyseventeen.patch b/patches/themes/0187-twentyseventeen.patch index 92b281d5eead2e381a87f8de2cd2fb9d871a8a41..cdf282f507ade24d8ea7f17fe8002b8fa3e4baa2 100644 --- a/patches/themes/0187-twentyseventeen.patch +++ b/patches/themes/0187-twentyseventeen.patch @@ -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', + ); + }