Php 同一jquery版本没有';如果在Google API上有,则无法工作

Php 同一jquery版本没有';如果在Google API上有,则无法工作,php,jquery,wordpress,Php,Jquery,Wordpress,我很困惑,所以如果我把它放在functions.php中,在Wordpress上,它就可以工作了 function modify_jquery() { if (!is_admin()) { // comment out the next two lines to load the local copy of jQuery wp_deregister_script('jquery'); wp_register_script('jquery',

我很困惑,所以如果我把它放在functions.php中,在Wordpress上,它就可以工作了

function modify_jquery() {
    if (!is_admin()) {
        // comment out the next two lines to load the local copy of jQuery
        wp_deregister_script('jquery');
        wp_register_script('jquery', 'http://sitgesgroup.com/wp-content/themes/toolbox/assets/js/jquery-1.9.0.min.js', false, '1.9.0');
        wp_enqueue_script('jquery');
    }
}
add_action('init', 'modify_jquery'); 
但是,

如果我把这个放进去,它就碎了

http://ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.jsfunction modify_jquery() {
    if (!is_admin()) {
        // comment out the next two lines to load the local copy of jQuery
        wp_deregister_script('jquery');
        wp_register_script('jquery', 'http://ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js', false, '1.9.0');
        wp_enqueue_script('jquery');
    }
}
add_action('init', 'modify_jquery'); 
为什么这些文件是同一个文件


谢谢

我的意思是,需要这个jquery的东西没有正常工作;您是否为其他需要它的文件显式地添加了对jQuery的依赖关系?如果不是,可能是两台服务器之间的延迟差异造成了影响?