mirror of
https://github.com/WenPai-org/wp-china-yes.git
synced 2025-08-03 11:11:30 +08:00
修复:核心功能无法在 Cron 环境中运行的问题
This commit is contained in:
parent
61528c80c3
commit
946e4debcf
1 changed files with 2 additions and 2 deletions
|
@ -4,7 +4,7 @@
|
|||
* Description: 将你的WordPress接入本土生态体系中,这将为你提供一个更贴近中国人使用习惯的WordPress
|
||||
* Author: WP中国本土化社区
|
||||
* Author URI:https://wp-china.org/
|
||||
* Version: 3.5.2
|
||||
* Version: 3.5.3
|
||||
* Network: True
|
||||
* License: GPLv3 or later
|
||||
* License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
||||
|
@ -100,7 +100,7 @@ if ( ! class_exists( 'WP_CHINA_YES' ) ) {
|
|||
}
|
||||
|
||||
|
||||
if ( is_admin() ) {
|
||||
if ( is_admin() || wp_doing_cron() ) {
|
||||
add_action( 'admin_init', function () {
|
||||
/**
|
||||
* wpapi用以标记用户所选的仓库api,数值说明:1 使用由WP-China.org提供的国区定制API,2 只是经代理加速的api.wordpress.org原版API
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue