mirror of
https://github.com/WenPai-org/wp-china-yes.git
synced 2025-08-07 14:35:20 +08:00
特性:增加不接管应用市场的选项
This commit is contained in:
parent
788d5fba6d
commit
ef9a96618d
2 changed files with 4 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue