Last active
August 29, 2015 14:26
-
-
Save badfun/3a9a3799a0b77ff895d9 to your computer and use it in GitHub Desktop.
Revisions
-
badfun revised this gist
Jul 28, 2015 . No changes.There are no files selected for viewing
-
badfun revised this gist
Jul 28, 2015 . No changes.There are no files selected for viewing
-
badfun created this gist
Jul 28, 2015 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,10 @@ function bfp_load_jquery_if_not_loading(){ if( ! wp_script_is( 'jquery', 'enqueued') && ! is_admin() ){ wp_deregister_script('jquery'); wp_register_script('jquery', 'http://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js', false, '1.11.3'); wp_enqueue_script('jquery'); } } add_action( 'wp_enqueue_scripts', 'bfp_load_jquery_if_not_loading');