Skip to content

Commit

Permalink
Merge pull request #448 from grantholle/z-index
Browse files Browse the repository at this point in the history
Replace google hosted resources with cdnjs, fix #444
  • Loading branch information
corsacca authored Mar 6, 2018
2 parents 804c369 + 32662fb commit 4d80bd2
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 4d80bd2

Please sign in to comment.