Created
January 28, 2013 16:13
-
-
Save dalethedeveloper/4656838 to your computer and use it in GitHub Desktop.
Rollback WordPress 3.5's jQuery version to 1.7.2 for plugins that haven't been migrated to 1.8.3 yet. Be aware there may be unintended consequences of using this, particularly in the WP Admin. You will need to call jQuery.noConflict() early as well ref: http://codex.wordpress.org/Function_Reference/wp_enqueue_script#jQuery_noConflict_wrappers
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
function rollback_jquery() { | |
wp_deregister_script('jquery'); | |
wp_enqueue_script('jquery-1.7.2','http://code.jquery.com/jquery-1.7.2.min.js'); | |
} | |
add_action('wp_enqueue_scripts','rollback_jquery',100); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment