Skip to content
This repository has been archived by the owner on Jan 16, 2024. It is now read-only.

Commit

Permalink
Switch from Google CDN to jQuery CDN
Browse files Browse the repository at this point in the history
  • Loading branch information
retlehs committed Mar 7, 2016
1 parent 28d86c6 commit 2e1cbdc
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
### HEAD
* Switch from Google CDN to jQuery CDN ([#144](https://github.com/roots/soil/issues/144))

### 3.6.2: December 24th, 2015
* Add missing oEmbed cleanup ([#134](https://github.com/roots/soil/issues/134))

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ wp plugin activate soil
* **Google Analytics** ([more info](https://github.com/roots/soil/wiki/Google-Analytics))<br>
`add_theme_support('soil-google-analytics', 'UA-XXXXX-Y');`

* **Load jQuery from the Google CDN**<br>
* **Load jQuery from the jQuery CDN**<br>
`add_theme_support('soil-jquery-cdn');`

* **Move all JS to the footer**<br>
Expand Down
4 changes: 2 additions & 2 deletions modules/jquery-cdn.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
namespace Roots\Soil\JqueryCDN;

/**
* Load jQuery from Google's CDN with a local fallback
* Load jQuery from jQuery's CDN with a local fallback
*
* You can enable/disable this feature in functions.php (or lib/setup.php if you're using Sage):
* add_theme_support('soil-jquery-cdn');
Expand All @@ -15,7 +15,7 @@ function register_jquery() {

wp_register_script(
'jquery',
'https://ajax.googleapis.com/ajax/libs/jquery/' . $jquery_version . '/jquery.min.js',
'https://code.jquery.com/jquery-' . $jquery_version . '.min.js',
[],
null,
true
Expand Down

0 comments on commit 2e1cbdc

Please sign in to comment.