Update to jQuery 1.8.3
This commit is contained in:
@@ -1,4 +1,5 @@
|
|||||||
### HEAD
|
### HEAD
|
||||||
|
* Update to jQuery 1.8.3
|
||||||
* Use `entry-summary` class for excerpts per Readability's Article Publishing Guidelines
|
* Use `entry-summary` class for excerpts per Readability's Article Publishing Guidelines
|
||||||
* Cleanup/refactor `lib/activation.php`
|
* Cleanup/refactor `lib/activation.php`
|
||||||
* Remove `lib/post-types.php` and `lib/metaboxes.php`
|
* Remove `lib/post-types.php` and `lib/metaboxes.php`
|
||||||
|
|||||||
2
assets/js/vendor/jquery-1.8.2.min.js
vendored
2
assets/js/vendor/jquery-1.8.2.min.js
vendored
File diff suppressed because one or more lines are too long
2
assets/js/vendor/jquery-1.8.3.min.js
vendored
Normal file
2
assets/js/vendor/jquery-1.8.3.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
@@ -82,8 +82,8 @@ If you're using LESS, make sure you compile the files to the proper locations:
|
|||||||
|
|
||||||
JavaScript is loaded in the following order:
|
JavaScript is loaded in the following order:
|
||||||
|
|
||||||
1. `/theme/assets/js/vendor/modernizr-2.6.1.min.js` (in `head.php`)
|
1. `/theme/assets/js/vendor/modernizr-2.6.2.min.js` (in `head.php`)
|
||||||
2. `jquery-1.8.2.min.js` via Google CDN with local fallback (in `head.php`)
|
2. `jquery-1.8.3.min.js` via Google CDN with local fallback (in `head.php`)
|
||||||
3. `/theme/assets/js/plugins.js`
|
3. `/theme/assets/js/plugins.js`
|
||||||
4. `/theme/assets/js/main.js`
|
4. `/theme/assets/js/main.js`
|
||||||
|
|
||||||
|
|||||||
@@ -28,8 +28,8 @@ A basic Roots theme initially looks like this:
|
|||||||
│ ├── main.js
|
│ ├── main.js
|
||||||
│ ├── plugins.js (includes bootstrap.js)
|
│ ├── plugins.js (includes bootstrap.js)
|
||||||
│ └── vendor
|
│ └── vendor
|
||||||
│ ├── jquery-1.8.2.min.js
|
│ ├── jquery-1.8.3.min.js
|
||||||
│ └── modernizr-2.6.1.min.js
|
│ └── modernizr-2.6.2.min.js
|
||||||
├── doc
|
├── doc
|
||||||
├── lang
|
├── lang
|
||||||
│ └── roots.pot
|
│ └── roots.pot
|
||||||
|
|||||||
@@ -142,7 +142,7 @@ AddType application/x-shockwave-flash swf
|
|||||||
# ----------------------------------------------------------------------
|
# ----------------------------------------------------------------------
|
||||||
|
|
||||||
# e.g. Inside of script.combined.js you could have
|
# e.g. Inside of script.combined.js you could have
|
||||||
# <!--#include file="libs/jquery-1.8.2.min.js" -->
|
# <!--#include file="libs/jquery-1.8.3.min.js" -->
|
||||||
# <!--#include file="plugins/jquery.idletimer.js" -->
|
# <!--#include file="plugins/jquery.idletimer.js" -->
|
||||||
# and they would be included into this single file.
|
# and they would be included into this single file.
|
||||||
|
|
||||||
|
|||||||
@@ -30,7 +30,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()) {
|
if (!is_admin()) {
|
||||||
wp_deregister_script('jquery');
|
wp_deregister_script('jquery');
|
||||||
wp_register_script('jquery', '', '', '1.8.2', false);
|
wp_register_script('jquery', '', '', '1.8.3', false);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (is_single() && comments_open() && get_option('thread_comments')) {
|
if (is_single() && comments_open() && get_option('thread_comments')) {
|
||||||
|
|||||||
@@ -10,8 +10,8 @@
|
|||||||
|
|
||||||
<script src="<?php echo get_template_directory_uri(); ?>/assets/js/vendor/modernizr-2.6.2.min.js"></script>
|
<script src="<?php echo get_template_directory_uri(); ?>/assets/js/vendor/modernizr-2.6.2.min.js"></script>
|
||||||
|
|
||||||
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script>
|
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
|
||||||
<script>window.jQuery || document.write('<script src="<?php echo get_template_directory_uri(); ?>/assets/js/vendor/jquery-1.8.2.min.js"><\/script>')</script>
|
<script>window.jQuery || document.write('<script src="<?php echo get_template_directory_uri(); ?>/assets/js/vendor/jquery-1.8.3.min.js"><\/script>')</script>
|
||||||
|
|
||||||
<?php wp_head(); ?>
|
<?php wp_head(); ?>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user