From 612f1d4f6e9c4fe2d3d8e039e298f86995692a16 Mon Sep 17 00:00:00 2001 From: Platonides Date: Wed, 1 Nov 2017 23:02:52 +0100 Subject: [PATCH] Remove Open Sans loading from google servers The url https://fonts.googleapis.com/css?family=Open+Sans:400italic,700italic,400,700&subset=latin,latin-ext is being replaced with a local clone of https://github.com/FontFaceKit/open-sans --- functions.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/functions.php b/functions.php index ea2c8e3..4980622 100644 --- a/functions.php +++ b/functions.php @@ -47,3 +47,9 @@ function url_filtered($fields) } add_filter('comment_form_default_fields', 'url_filtered'); +// Reemplazar la url de la fuente, según el esquema de https://core.trac.wordpress.org/ticket/39481#comment:6 +function wmes_font_url_replacement() { + $font_url = 'https://archivos.wikimedia.es/fonts/open-sans/open-sans.css'; + wp_enqueue_style( 'twentytwelve-fonts', esc_url_raw( $font_url ), array(), null ); +} +add_action( 'wp_enqueue_scripts', 'wmes_font_url_replacement' ); -- 2.30.2