Make sure jQuery fallback is immediately after jQuery

This commit is contained in:
Ben Word
2013-09-08 12:02:42 -05:00
parent acab6fe5f7
commit 2a3fbf0d66

View File

@@ -35,7 +35,7 @@ function roots_scripts() {
add_action('wp_enqueue_scripts', 'roots_scripts', 100);
// http://wordpress.stackexchange.com/a/12450
function roots_jquery_local_fallback($src, $handle) {
function roots_jquery_local_fallback($src, $handle = null) {
static $add_jquery_fallback = false;
if ($add_jquery_fallback) {
@@ -49,6 +49,7 @@ function roots_jquery_local_fallback($src, $handle) {
return $src;
}
add_action('wp_head', 'roots_jquery_local_fallback');
function roots_google_analytics() { ?>
<script>