Skip to content

Commit

Permalink
Make sure jQuery fallback is immediately after jQuery
Browse files Browse the repository at this point in the history
  • Loading branch information
retlehs authored and jmjf committed Sep 10, 2013
1 parent 67b0d20 commit 549530e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/scripts.php
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -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>
Expand Down

0 comments on commit 549530e

Please sign in to comment.