Change the default source of jQuery

This snippet will allow you to change the default source for your WordPress jQuery files.

Instructions
Add this code to your functions.php file.

function add_scripts() {
    wp_deregister_script( 'jquery' );
    wp_register_script( 'jquery', 'http://code.jquery.com/jquery-1.7.1.min.js');
    wp_enqueue_script( 'jquery' );
}

add_action('wp_enqueue_scripts', 'add_scripts');

Go to wp-snippet.com [source]