Created
September 5, 2015 00:05
-
-
Save colegeissinger/b26bd241e189557ebc5c to your computer and use it in GitHub Desktop.
Revert jQuery back a version so ACF works in WordPress 4.3
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 characters
function cg_revert_jquery_version_admin() { | |
wp_deregister_script( 'jquery' ); | |
wp_register_script( 'jquery', 'https://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js'); | |
wp_enqueue_script( 'jquery' ); | |
} | |
add_action( 'admin_enqueue_scripts', 'cg_revert_jquery_version_admin' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment