fix:修复读取错误设置项的问题

This commit is contained in:
sunxiyuan 2020-08-15 15:32:01 +08:00
parent fce96a62e9
commit b236caffce

View file

@ -74,7 +74,7 @@ if (is_admin()) {
if ( ! stristr($url, 'api.wordpress.org') && ! stristr($url, 'downloads.wordpress.org')) {
return false;
}
if (get_option('super_gravatar') == 1) {
if (get_option('wpapi') == 1) {
$url = str_replace('api.wordpress.org', 'api.wp-china-yes.net', $url);
} else {
$url = str_replace('api.wordpress.org', 'api-original.wp-china-yes.net', $url);