mirror of
https://github.com/WenPai-org/wp-china-yes.git
synced 2025-08-03 11:11:30 +08:00
feat: 提升版本号
This commit is contained in:
parent
7121b4b7ef
commit
adb8efd320
2 changed files with 3 additions and 3 deletions
|
@ -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' );
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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 ) );
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue