Created
February 28, 2017 11:23
-
-
Save cheh/1b61175101d6330e8c415d06d77c8df5 to your computer and use it in GitHub Desktop.
Update jQuery Cherry Framework
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
// Add code below in your theme `includes/custom-function.php` file. | |
add_action( 'wp_enqueue_scripts', 'theme55574_back_latest_jquery', 10 ); | |
function theme55574_back_latest_jquery() { | |
$suffix = SCRIPT_DEBUG ? '' : '.min'; | |
wp_deregister_script( 'jquery' ); | |
wp_deregister_script( 'migrate' ); | |
wp_enqueue_script( 'jquery', false, array( 'jquery-core', 'jquery-migrate' ), '1.12.4' ); | |
wp_enqueue_script( 'jquery-core', '/wp-includes/js/jquery/jquery.js', array(), '1.12.4' ); | |
wp_enqueue_script( 'jquery-migrate', "/wp-includes/js/jquery/jquery-migrate$suffix.js", array(), '1.4.1' ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment