feat: 提升版本号

This commit is contained in:
耗子 2024-11-19 18:12:56 +08:00
parent 7121b4b7ef
commit adb8efd320
No known key found for this signature in database
GPG key ID: C964D7226D045DAA
2 changed files with 3 additions and 3 deletions

View file

@ -24,7 +24,7 @@ class Monitor {
// 站点网络下只在主站运行
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 @@ class Monitor {
*/
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' );
}
}

View file

@ -19,7 +19,7 @@ namespace WenPai\ChinaYes;
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 ) );