Skip to content

Instantly share code, notes, and snippets.

@dalethedeveloper
Created January 28, 2013 16:13
Show Gist options
  • Save dalethedeveloper/4656838 to your computer and use it in GitHub Desktop.
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
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