Load jQuery from Bower

This commit is contained in:
Ben Word
2014-02-04 22:59:07 -06:00
parent 6b176ecb67
commit 6ace5bbb27
3 changed files with 2 additions and 5 deletions

File diff suppressed because one or more lines are too long

View File

@@ -13,6 +13,7 @@
"assets/vendor"
],
"dependencies": {
"jquery": "1.11.0",
"bootstrap": "3.1.0"
}
}

View File

@@ -39,7 +39,7 @@ function roots_jquery_local_fallback($src, $handle = null) {
static $add_jquery_fallback = false;
if ($add_jquery_fallback) {
echo '<script>window.jQuery || document.write(\'<script src="' . get_template_directory_uri() . '/assets/js/vendor/jquery-1.11.0.min.js"><\/script>\')</script>' . "\n";
echo '<script>window.jQuery || document.write(\'<script src="' . get_template_directory_uri() . '/assets/vendor/jquery/jquery.min.js"><\/script>\')</script>' . "\n";
$add_jquery_fallback = false;
}