public function deactivate()
{
// Deal with the old pre-3.0 weekly one.
if ($timestamp = wp_next_scheduled('jetpack_heartbeat')) {
wp_unschedule_event($timestamp, 'jetpack_heartbeat');
}
$timestamp = wp_next_scheduled($this->cron_name);
wp_unschedule_event($timestamp, $this->cron_name);
}