From 32662fbee81fffccc17bfcbf74b53b0892d5037a Mon Sep 17 00:00:00 2001 From: Grant Holle Date: Tue, 6 Mar 2018 16:35:37 +0800 Subject: [PATCH] Replace google hosted resources with cdnjs, fix #444 --- dt-assets/functions/enqueue-scripts.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dt-assets/functions/enqueue-scripts.php b/dt-assets/functions/enqueue-scripts.php index c52cf5d3c4..7e66ee8ebd 100644 --- a/dt-assets/functions/enqueue-scripts.php +++ b/dt-assets/functions/enqueue-scripts.php @@ -53,7 +53,7 @@ function dt_site_scripts() { */ /** jQuery UI custom theme styles. @see http://jqueryui.com/themeroller/ */ - wp_enqueue_style( 'jquery-ui-site-css', 'https://ajax.googleapis.com/ajax/libs/jqueryui/1.12.1/themes/base/jquery-ui.css', array(), '', 'all' ); + wp_enqueue_style( 'jquery-ui-site-css', 'https://cdnjs.cloudflare.com/ajax/libs/jqueryui/1.12.1/jquery-ui.css', array(), '', 'all' ); // comment out the next two lines to load the local copy of jQuery wp_deregister_script( 'jquery' ); @@ -61,7 +61,7 @@ function dt_site_scripts() { wp_enqueue_script( 'jquery' ); // comment out the next two lines to load the local copy of jQuery - wp_register_script( 'jquery-ui', 'https://ajax.googleapis.com/ajax/libs/jqueryui/1.12.1/jquery-ui.min.js', false, '1.12.1' ); + wp_register_script( 'jquery-ui', 'https://cdnjs.cloudflare.com/ajax/libs/jqueryui/1.12.1/jquery-ui.min.js', false, '1.12.1' ); wp_enqueue_script( 'jquery-ui' ); /** * End jQuery force new version