diff --git a/Service/Monitor.php b/Service/Monitor.php index 73fb085..efb8c63 100644 --- a/Service/Monitor.php +++ b/Service/Monitor.php @@ -24,7 +24,7 @@ public function __construct() { // 站点网络下只在主站运行 if ( is_main_site() ) { add_action( 'init', [ $this, 'init' ] ); - add_action( 'wp_china_yes_monitor_hook', [ + add_action( 'wp_china_yes_monitor', [ $this, 'run_monitor' ] ); @@ -39,7 +39,7 @@ public function __construct() { */ public function init() { if ( ! wp_next_scheduled( 'wp_china_yes_monitor' ) ) { - wp_schedule_event( time(), 'hourly', 'wp_china_yes_monitor_hook' ); + wp_schedule_event( time(), 'hourly', 'wp_china_yes_monitor' ); } } diff --git a/wp-china-yes.php b/wp-china-yes.php index 7db8452..1cdd69e 100644 --- a/wp-china-yes.php +++ b/wp-china-yes.php @@ -19,7 +19,7 @@ defined( 'ABSPATH' ) || exit; -define( 'CHINA_YES_VERSION', '3.7.0' ); +define( 'CHINA_YES_VERSION', '3.7.1' ); define( 'CHINA_YES_PLUGIN_FILE', __FILE__ ); define( 'CHINA_YES_PLUGIN_URL', plugin_dir_url( CHINA_YES_PLUGIN_FILE ) ); define( 'CHINA_YES_PLUGIN_PATH', plugin_dir_path( CHINA_YES_PLUGIN_FILE ) );