mirror of
https://github.com/WenPai-org/wp-china-yes.git
synced 2025-08-04 20:19:53 +08:00
fix:修复读取错误设置项的问题
This commit is contained in:
parent
fce96a62e9
commit
b236caffce
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue