Skip to content

Commit

Permalink
feat: 提升版本号
Browse files Browse the repository at this point in the history
  • Loading branch information
devhaozi committed Nov 19, 2024
1 parent 7121b4b commit adb8efd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Service/Monitor.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'
] );
Expand All @@ -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' );
}
}

Expand Down
2 changes: 1 addition & 1 deletion wp-china-yes.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 ) );
Expand Down

0 comments on commit adb8efd

Please sign in to comment.