Posted By

i-am-andy on 07/25/12


Tagged

php wordpress jquery functions


Versions (?)

Who likes this?

2 people have marked this snippet as a favorite

pixelslave
ruijscosta


Load latest version of jQuery from Google Libraries API and de-register Wordpress version


 / Published in: CSS
 

URL: http://www.kevinleary.net/always-load-latest-version-jquery-wordpress/

Load latest version of jQuery from Google Libraries API and de-register Wordpress version

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

Report this snippet  

You need to login to post a comment.