Created
October 4, 2012 18:51
-
-
Save rosshanney/3835619 to your computer and use it in GitHub Desktop.
Load jQuery 1.8.23 rather than 1.8.20
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
<?php | |
/* | |
Plugin name: GCE newer jQuery UI | |
*/ | |
function gce_newer_jquery_ui() { | |
wp_deregister_script( 'jquery-ui-core' ); | |
wp_register_script( 'jquery-ui-core', 'http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.23/jquery-ui.min.js' ); | |
wp_enqueue_script( 'jquery-ui-core' ); | |
} | |
add_action( 'init', 'gce_newer_jquery_ui' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment