Skip to content

Commit

Permalink
Close roots#635 - Update to jQuery 1.9.0
Browse files Browse the repository at this point in the history
  • Loading branch information
retlehs committed Jan 15, 2013
1 parent 3b0bb0d commit 2ed9738
Show file tree
Hide file tree
Showing 8 changed files with 14 additions and 9 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
### HEAD
* Update to jQuery 1.9.0

### 6.2.0: January 13th, 2013
* Implement latest Nice Search
* Update [gallery] shortcode
Expand Down
2 changes: 0 additions & 2 deletions assets/js/vendor/jquery-1.8.3.min.js

This file was deleted.

4 changes: 4 additions & 0 deletions assets/js/vendor/jquery-1.9.0.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion doc/lib.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ If you're using LESS, make sure you compile the files to the proper locations:
JavaScript is loaded in the following order:

1. `/theme/assets/js/vendor/modernizr-2.6.2.min.js` (in `head.php`)
2. `jquery-1.8.3.min.js` via Google CDN with local fallback (in `head.php`)
2. `jquery-1.9.0.min.js` via Google CDN with local fallback (in `head.php`)
3. `/theme/assets/js/plugins.js`
4. `/theme/assets/js/main.js`

Expand Down
2 changes: 1 addition & 1 deletion doc/usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ A basic Roots theme initially looks like this:
│ ├── main.js
│ ├── plugins.js (includes bootstrap.js)
│ └── vendor
│ ├── jquery-1.8.3.min.js
│ ├── jquery-1.9.0.min.js
│ └── modernizr-2.6.2.min.js
├── doc
├── lang
Expand Down
2 changes: 1 addition & 1 deletion lib/h5bp-htaccess
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ AddType application/x-shockwave-flash swf
# ----------------------------------------------------------------------

# e.g. Inside of script.combined.js you could have
# <!--#include file="libs/jquery-1.8.3.min.js" -->
# <!--#include file="libs/jquery.min.js" -->
# <!--#include file="plugins/jquery.idletimer.js" -->
# and they would be included into this single file.

Expand Down
4 changes: 2 additions & 2 deletions lib/scripts.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
*
* Enqueue scripts in the following order:
* 1. /theme/assets/js/vendor/modernizr-2.6.2.min.js (in head.php)
* 2. jquery-1.8.2.min.js via Google CDN (in head.php)
* 2. jquery-1.9.0.min.js via Google CDN (in head.php)
* 3. /theme/assets/js/plugins.js
* 4. /theme/assets/js/main.js
*/
Expand All @@ -30,7 +30,7 @@ function roots_scripts() {
// It's kept in the header instead of footer to avoid conflicts with plugins.
if (!is_admin()) {
wp_deregister_script('jquery');
wp_register_script('jquery', '', '', '1.8.3', false);
wp_register_script('jquery', '', '', '1.9.0', false);
}

if (is_single() && comments_open() && get_option('thread_comments')) {
Expand Down
4 changes: 2 additions & 2 deletions templates/head.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@

<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.3/jquery.min.js"></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>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js"></script>
<script>window.jQuery || document.write('<script src="<?php echo get_template_directory_uri(); ?>/assets/js/vendor/jquery-1.9.0.min.js"><\/script>')</script>

<?php wp_head(); ?>

Expand Down

0 comments on commit 2ed9738

Please sign in to comment.