Merge pull request #969 from roots/jquery-1.11.0
Update to jQuery 1.11.0
This commit is contained in:
@@ -1,4 +1,5 @@
|
|||||||
### HEAD
|
### HEAD
|
||||||
|
* Update to jQuery 1.11.0
|
||||||
* Add notice to theme activation, tidy activation table markup
|
* Add notice to theme activation, tidy activation table markup
|
||||||
* Remove changing media folder from theme activation (use [Bedrock](https://github.com/roots/bedrock) for clean URLs out of the box)
|
* Remove changing media folder from theme activation (use [Bedrock](https://github.com/roots/bedrock) for clean URLs out of the box)
|
||||||
* Update to Bootstrap 3.0.3
|
* Update to Bootstrap 3.0.3
|
||||||
|
|||||||
6
assets/js/vendor/jquery-1.10.2.min.js
vendored
6
assets/js/vendor/jquery-1.10.2.min.js
vendored
File diff suppressed because one or more lines are too long
4
assets/js/vendor/jquery-1.11.0.min.js
vendored
Normal file
4
assets/js/vendor/jquery-1.11.0.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
@@ -6,7 +6,7 @@
|
|||||||
* 1. /theme/assets/css/main.min.css
|
* 1. /theme/assets/css/main.min.css
|
||||||
*
|
*
|
||||||
* Enqueue scripts in the following order:
|
* Enqueue scripts in the following order:
|
||||||
* 1. jquery-1.10.2.min.js via Google CDN
|
* 1. jquery-1.11.0.min.js via Google CDN
|
||||||
* 2. /theme/assets/js/vendor/modernizr-2.7.0.min.js
|
* 2. /theme/assets/js/vendor/modernizr-2.7.0.min.js
|
||||||
* 3. /theme/assets/js/main.min.js (in footer)
|
* 3. /theme/assets/js/main.min.js (in footer)
|
||||||
*/
|
*/
|
||||||
@@ -18,7 +18,7 @@ function roots_scripts() {
|
|||||||
// It's kept in the header instead of footer to avoid conflicts with plugins.
|
// It's kept in the header instead of footer to avoid conflicts with plugins.
|
||||||
if (!is_admin() && current_theme_supports('jquery-cdn')) {
|
if (!is_admin() && current_theme_supports('jquery-cdn')) {
|
||||||
wp_deregister_script('jquery');
|
wp_deregister_script('jquery');
|
||||||
wp_register_script('jquery', '//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js', array(), null, false);
|
wp_register_script('jquery', '//ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js', array(), null, false);
|
||||||
add_filter('script_loader_src', 'roots_jquery_local_fallback', 10, 2);
|
add_filter('script_loader_src', 'roots_jquery_local_fallback', 10, 2);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -39,7 +39,7 @@ function roots_jquery_local_fallback($src, $handle = null) {
|
|||||||
static $add_jquery_fallback = false;
|
static $add_jquery_fallback = false;
|
||||||
|
|
||||||
if ($add_jquery_fallback) {
|
if ($add_jquery_fallback) {
|
||||||
echo '<script>window.jQuery || document.write(\'<script src="' . get_template_directory_uri() . '/assets/js/vendor/jquery-1.10.2.min.js"><\/script>\')</script>' . "\n";
|
echo '<script>window.jQuery || document.write(\'<script src="' . get_template_directory_uri() . '/assets/js/vendor/jquery-1.11.0.min.js"><\/script>\')</script>' . "\n";
|
||||||
$add_jquery_fallback = false;
|
$add_jquery_fallback = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user