Hi.
After reading your post today, I have become unsure of the way I load jquery in my themes.
http://www.gravityhelp.com/gravity-forms-v1-6-4-2-released/. (By the way, I tried to post a comment on that page, but my comment was not submitted).
I have always loaded jQuery from Google's API, because I wanted to use the latest version at the time of developing the site, plus I thought there were some speed advantages in doing so. I might be very wrong. :-)
This is how I do it:
add_action( 'wp_enqueue_scripts', 'load_javascript_files' );
/**
* Load scripts
*/
function load_javascript_files() {
if (!is_admin()) {
wp_deregister_script('jquery');
wp_register_script('jquery', 'https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js', false, '1.7.2', false);
wp_enqueue_script('jquery');
}
}
Do you advice not to do this or what is your opinion on this method?
Thanks
Vayu