Forked from BetoFrega/replace-jquery-to-google-repo.php
Created
April 14, 2013 05:34
-
-
Save npgenx/5381580 to your computer and use it in GitHub Desktop.
wordpress:
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
//Making jQuery Google API | |
function modify_jquery() { | |
if (!is_admin()) { | |
wp_deregister_script('jquery'); | |
wp_register_script('jquery', 'http://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js', false, '1.6.4'); | |
wp_enqueue_script('jquery'); | |
} | |
} | |
add_action('init', 'modify_jquery'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment