Created
March 6, 2013 17:18
-
-
Save bnetter/5101090 to your computer and use it in GitHub Desktop.
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
| <?php | |
| //Using jQuery Google API | |
| add_action('init', 'modify_jquery'); | |
| function modify_jquery() { | |
| if (!is_admin()) { | |
| wp_deregister_script('jquery'); | |
| wp_register_script('jquery', 'http://ajax.googleapis.com/ajax/libs/jquery/1.8.1/jquery.min.js', false, '1.8.1'); | |
| wp_enqueue_script('jquery'); | |
| } | |
| } | |
| ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment