Skip to content

Commit

Permalink
Replace google hosted resources with cdnjs, fix #444
Browse files Browse the repository at this point in the history
  • Loading branch information
grantholle committed Mar 6, 2018
1 parent db1bd26 commit 32662fb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dt-assets/functions/enqueue-scripts.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,15 +53,15 @@ 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' );
wp_register_script( 'jquery', 'https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js', false, '1.12.4' );
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
Expand Down

0 comments on commit 32662fb

Please sign in to comment.