mirror of
https://github.com/WenPai-org/wp-china-yes.git
synced 2025-08-08 06:56:08 +08:00
feat:官方原版应用市场不再和本土应用市场共用下载源
This commit is contained in:
parent
b236caffce
commit
4f0da6d999
1 changed files with 3 additions and 2 deletions
|
@ -76,10 +76,11 @@ if (is_admin()) {
|
||||||
}
|
}
|
||||||
if (get_option('wpapi') == 1) {
|
if (get_option('wpapi') == 1) {
|
||||||
$url = str_replace('api.wordpress.org', 'api.wp-china-yes.net', $url);
|
$url = str_replace('api.wordpress.org', 'api.wp-china-yes.net', $url);
|
||||||
|
$url = str_replace('downloads.wordpress.org', 'download.wp-china-yes.net', $url);
|
||||||
} else {
|
} else {
|
||||||
$url = str_replace('api.wordpress.org', 'api-original.wp-china-yes.net', $url);
|
$url = str_replace('api.wordpress.org', 'api.w.org.ibadboy.net', $url);
|
||||||
|
$url = str_replace('downloads.wordpress.org', 'd.w.org.ibadboy.net', $url);
|
||||||
}
|
}
|
||||||
$url = str_replace('downloads.wordpress.org', 'download.wp-china-yes.net', $url);
|
|
||||||
|
|
||||||
return wp_remote_request($url, $r);
|
return wp_remote_request($url, $r);
|
||||||
}, 10, 3);
|
}, 10, 3);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue