From 940b8b5399082e70a31518f5443eb0841ecdf8c7 Mon Sep 17 00:00:00 2001 From: Roscius Date: Fri, 3 Jan 2014 23:33:43 -0500 Subject: [PATCH] Match wp_register_script function signature Although the third parameter currently works when false to indicate no dependancies, it works by side-effect, the function signature uses an empty array to indicate no dependancies. --- lib/scripts.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/scripts.php b/lib/scripts.php index c40c54d..169e45d 100644 --- a/lib/scripts.php +++ b/lib/scripts.php @@ -18,7 +18,7 @@ function roots_scripts() { // It's kept in the header instead of footer to avoid conflicts with plugins. if (!is_admin() && current_theme_supports('jquery-cdn')) { wp_deregister_script('jquery'); - wp_register_script('jquery', '//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js', false, null, false); + wp_register_script('jquery', '//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js', array(), null, false); add_filter('script_loader_src', 'roots_jquery_local_fallback', 10, 2); } @@ -26,8 +26,8 @@ function roots_scripts() { wp_enqueue_script('comment-reply'); } - wp_register_script('modernizr', get_template_directory_uri() . '/assets/js/vendor/modernizr-2.7.0.min.js', false, null, false); - wp_register_script('roots_scripts', get_template_directory_uri() . '/assets/js/scripts.min.js', false, '01d073428e4e54f227f8a0a3bad4b804', true); + wp_register_script('modernizr', get_template_directory_uri() . '/assets/js/vendor/modernizr-2.7.0.min.js', array(), null, false); + wp_register_script('roots_scripts', get_template_directory_uri() . '/assets/js/scripts.min.js', array(), '01d073428e4e54f227f8a0a3bad4b804', true); wp_enqueue_script('modernizr'); wp_enqueue_script('jquery'); wp_enqueue_script('roots_scripts');