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

Commit

Permalink
Merge pull request #144 from roots/jquery-cdn
Browse files Browse the repository at this point in the history
Switch from Google CDN to jQuery CDN
  • Loading branch information
retlehs committed Mar 7, 2016
2 parents 28d86c6 + 2e1cbdc commit ba68a12
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
@@ -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
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
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 ba68a12

Please sign in to comment.