Skip to content

Commit a6d9ea8

Browse files
committed
All: Switch first-party CDN calls to codeorigin.jquery.com
Only calls that are hidden, i.e. not in docs or examples. Ref jquery/infrastructure-puppet#30.
1 parent 4ca0aaa commit a6d9ea8

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

themes/jquery/header.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525

2626
<script src="<?php echo get_template_directory_uri(); ?>/js/modernizr.custom.2.8.3.min.js"></script>
2727

28-
<script src="https://code.jquery.com/jquery-3.7.1.min.js"></script>
28+
<script src="https://codeorigin.jquery.com/jquery-3.7.1.min.js"></script>
2929

3030
<script src="<?php echo get_template_directory_uri(); ?>/js/plugins.js"></script>
3131
<script src="<?php echo get_template_directory_uri(); ?>/js/main.js"></script>

themes/releases.jquery.com/page.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<?php
2-
wp_enqueue_style('jquery-ui', 'https://code.jquery.com/ui/1.13.2/themes/ui-lightness/jquery-ui.css');
2+
wp_enqueue_style('jquery-ui', 'https://codeorigin.jquery.com/ui/1.13.2/themes/ui-lightness/jquery-ui.css');
33
wp_enqueue_style('sri-modal', get_template_directory_uri() . '/css/sri-modal.css');
44

5-
wp_enqueue_script('jquery-ui', 'https://code.jquery.com/ui/1.13.2/jquery-ui.min.js');
5+
wp_enqueue_script('jquery-ui', 'https://codeorigin.jquery.com/ui/1.13.2/jquery-ui.min.js');
66
wp_enqueue_script('clipboard-polyfill', get_template_directory_uri() . '/js/clipboard-polyfill.js');
77
wp_enqueue_script('sri-modal', get_template_directory_uri() . '/js/sri-modal.js');
88
?>

0 commit comments

Comments
 (0)