From ef9a96618d59e7f547b4696d7e12bb44e6fe38a1 Mon Sep 17 00:00:00 2001 From: sunxiyuan Date: Wed, 26 Aug 2020 18:11:45 +0800 Subject: [PATCH] =?UTF-8?q?=E7=89=B9=E6=80=A7=EF=BC=9A=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=E4=B8=8D=E6=8E=A5=E7=AE=A1=E5=BA=94=E7=94=A8=E5=B8=82=E5=9C=BA?= =?UTF-8?q?=E7=9A=84=E9=80=89=E9=A1=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- setting.php | 3 +++ wp-china-yes.php | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) 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) {