[Plugin: Wp Ajax Tree] Bad jQuery Loading
-
if(wp_script_is('jquery','registered')) { $ver = $wp_scripts->registered['jquery']->ver; wp_deregister_script('jquery'); wp_register_script('jquery', ("http://ajax.googleapis.com/ajax/libs/jquery/$ver/jquery.min.js"), false, $ver); if(!is_admin()) wp_enqueue_script('jquery'); }should be
if(wp_script_is('jquery','registered') && !is_admin()) { $ver = $wp_scripts->registered['jquery']->ver; wp_deregister_script('jquery'); wp_register_script('jquery', ("http://ajax.googleapis.com/ajax/libs/jquery/$ver/jquery.min.js"), false, $ver); wp_enqueue_script('jquery'); }
The topic ‘[Plugin: Wp Ajax Tree] Bad jQuery Loading’ is closed to new replies.