Created
October 30, 2020 16:03
-
-
Save Konark-Web/9b6b28a6a0ef528aa411c1922e5d75e9 to your computer and use it in GitHub Desktop.
This file contains 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 characters
// Fix jQuery after update WordPress | |
add_action( 'wp_enqueue_scripts', 'load_old_jquery_fix', 100 ); | |
function load_old_jquery_fix() { | |
if ( ! is_admin() ) { | |
wp_deregister_script( 'jquery' ); | |
wp_register_script( 'jquery', ( "//ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js" ), false, '1.11.3' ); | |
wp_enqueue_script( 'jquery' ); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment