drop_legacy_table(); // Set default options if not existing. if ( false === get_option( 'errorwatcher_settings' ) ) { $defaults = array( 'enabled' => 1, 'capture_fatals' => 1, 'capture_errors' => 1, 'capture_warnings' => 1, 'capture_notices' => 1, 'capture_deprecated' => 1, 'email_reports_enabled' => 0, 'notification_email' => get_option( 'admin_email' ), 'morning_time' => '08:00', 'evening_time' => '20:00', ); update_option( 'errorwatcher_settings', $defaults ); } update_option( 'errorwatcher_version', ERRORWATCHER_VERSION ); // Schedule cron tasks. ErrorWatcher_Cron::get_instance()->schedule_events(); } }