| @@ -8,8 +8,9 @@ | ||
| 8 | 8 | { |
| 9 | 9 | public function handle($network_wide = false) |
| 10 | 10 | { |
| 11 | 11 | DBMigrator::run($network_wide); |
| 12 | + update_option('fluent_support_db_version', FLUENT_SUPPORT_DB_VERSION, 'no'); | |
| 12 | 13 | |
| 13 | 14 | if (! wp_next_scheduled ( 'fluent_support_hourly_tasks' )) { |
| 14 | 15 | wp_schedule_event( time(), 'hourly', 'fluent_support_hourly_tasks' ); |
| 15 | 16 | } |
| @@ -15,7 +16,11 @@ | ||
| 15 | 16 | } |
| 16 | 17 | |
| 17 | 18 | if (! wp_next_scheduled ( 'fluent_support_daily_tasks' )) { |
| 18 | 19 | wp_schedule_event( time(), 'daily', 'fluent_support_daily_tasks' ); |
| 20 | + } | |
| 21 | + | |
| 22 | + if (! wp_next_scheduled ( 'fluent_support_weekly_tasks' )) { | |
| 23 | + wp_schedule_event( time(), 'weekly', 'fluent_support_weekly_tasks' ); | |
| 19 | 24 | } |
| 20 | 25 | } |
| 21 | 26 | } |