diff --git a/setting.php b/setting.php index 688cace..c3cedd5 100644 --- a/setting.php +++ b/setting.php @@ -72,6 +72,9 @@ function wpcy_field_wpapi_cb() { +
官方应用市场加速镜像:直接从官方反代并在大陆分发,除了增加对WP-China-Yes插件的更新支持外未做任何更改
diff --git a/wp-china-yes.php b/wp-china-yes.php index 22ac640..8153eef 100644 --- a/wp-china-yes.php +++ b/wp-china-yes.php @@ -86,7 +86,7 @@ if (is_admin()) { * URL替换代码来自于我爱水煮鱼(http://blog.wpjam.com/)开发的WPJAM Basic插件 */ add_filter('pre_http_request', function ($preempt, $r, $url) { - if (!stristr($url, 'api.wordpress.org') && !stristr($url, 'downloads.wordpress.org')) { + if ((!stristr($url, 'api.wordpress.org') && !stristr($url, 'downloads.wordpress.org')) || get_option('wpapi') == 3) { return false; } if (get_option('wpapi') == 1) {