Make Wordpress Using the Latest jQuery

I just copied this from another website, put it here just in case that I forgot.

1
2
3
4
5
if( !is_admin()){
    wp_deregister_script('jquery');
    wp_register_script('jquery', ("http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"), false, '');
    wp_enqueue_script('jquery');
}

Put this snippet to functions.php file in your theme folder ( eg : wp-content/theme/whatever/functions.php )

Comments