googleapisへの参照はすべて中国の私のウェブサイトをブロックします。これらの参照を削除するにはどうすればよいですか?ここで私のWordpressサイトからajax.googleapis.comを削除してください
は、GoogleのAPIリファレンスのための私のgrep検索の結果は以下のとおりです。ここで
./codesearch.php:$command = "grep -ri 'ajax.googleapis.com' ./*"; ./wp-content/cache/all/privacy-policy/index.html: ./wp-content/cache/all/privacy-policy/index.html: ./wp-content/cache/all/contact/index.html: ./wp-content/cache/all/contact/index.html: ./wp-content/cache/all/index.html: ./wp-content/cache/all/index.html: ./wp-content/cache/all/author/boomerlanglearning/index.html: ./wp-content/cache/all/author/boomerlanglearning/index.html: ./wp-content/cache/all/my-account/index.html: ./wp-content/cache/all/my-account/index.html: ./wp-content/cache/all/my-account/lost-password/index.html: ./wp-content/cache/all/my-account/lost-password/index.html: ./wp-content/cache/all/terms-and-conditions/index.html: ./wp-content/cache/all/terms-and-conditions/index.html: ./wp-content/plugins/woocommerce-checkout-manager/woocommerce-checkout-manager.php: // wp_enqueue_script('jquery-lib', '//ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js'); ./wp-content/plugins/booster-plus-for-woocommerce/includes/settings/wcj-settings-general.php: 'default' => '//ajax.googleapis.com/ajax/libs/jqueryui/1.9.0/themes/base/jquery-ui.css', ./wp-content/plugins/booster-plus-for-woocommerce/includes/classes/class-wcj-scripts.php: $datepicker_css_path = '//ajax.googleapis.com/ajax/libs/jqueryui/1.9.0/themes/base/jquery-ui.css'; ./wp-content/plugins/woocommerce-bookings/woocommerce-bookings.php: wp_enqueue_style('jquery-ui-style', '//ajax.googleapis.com/ajax/libs/jqueryui/' . $jquery_version . '/themes/smoothness/jquery-ui.min.css'); ./wp-includes/script-loader.php: $scripts->add('prototype', 'https://ajax.googleapis.com/ajax/libs/prototype/1.7.1.0/prototype.js', array(), '1.7.1'); ./wp-includes/script-loader.php: $scripts->add('scriptaculous-root', 'https://ajax.googleapis.com/ajax/libs/scriptaculous/1.9.0/scriptaculous.js', array('prototype'), '1.9.0'); ./wp-includes/script-loader.php: $scripts->add('scriptaculous-builder', 'https://ajax.googleapis.com/ajax/libs/scriptaculous/1.9.0/builder.js', array('scriptaculous-root'), '1.9.0'); ./wp-includes/script-loader.php: $scripts->add('scriptaculous-dragdrop', 'https://ajax.googleapis.com/ajax/libs/scriptaculous/1.9.0/dragdrop.js', array('scriptaculous-builder', 'scriptaculous-effects'), '1.9.0'); ./wp-includes/script-loader.php: $scripts->add('scriptaculous-effects', 'https://ajax.googleapis.com/ajax/libs/scriptaculous/1.9.0/effects.js', array('scriptaculous-root'), '1.9.0'); ./wp-includes/script-loader.php: $scripts->add('scriptaculous-slider', 'https://ajax.googleapis.com/ajax/libs/scriptaculous/1.9.0/slider.js', array('scriptaculous-effects'), '1.9.0'); ./wp-includes/script-loader.php: $scripts->add('scriptaculous-sound', 'https://ajax.googleapis.com/ajax/libs/scriptaculous/1.9.0/sound.js', array('scriptaculous-root'), '1.9.0'); ./wp-includes/script-loader.php: $scripts->add('scriptaculous-controls', 'https://ajax.googleapis.com/ajax/libs/scriptaculous/1.9.0/controls.js', array('scriptaculous-root'), '1.9.0'); Grep job over.
は、私は私の子供のテーマのfunctions.phpファイルに追加のコードは次のとおりです。
function modify_jquery() {
if (!is_admin()) {
wp_deregister_script('jquery');
wp_register_script('jquery', 'https://ajax.aspnetcdn.com/ajax/jquery/jquery-1.9.0.js', false, '1.9.0');
wp_enqueue_script('jquery');
}
}
add_action('init', 'modify_jquery');
grep検索結果をテキスト**に追加します。純粋なテキストのスクリーンショットを提供する必要はありません。 –