From 44960a2ad44b5308a46cc4a7a71894271157dd94 Mon Sep 17 00:00:00 2001 From: ctr49 Date: Fri, 19 Feb 2021 12:29:11 +0100 Subject: [PATCH] Revert "cast interval to int in case of unexpected option setting" This reverts commit 66d399832e580194e4f503dd1468c93457f276d3. --- wolkal3000.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wolkal3000.php b/wolkal3000.php index e17dbcc..e23ad49 100644 --- a/wolkal3000.php +++ b/wolkal3000.php @@ -35,7 +35,7 @@ add_filter( 'cron_schedules', 'wolkal3000_cron_interval' ); function wolkal3000_cron_interval( $schedules ) { $options = get_option('wolkal3000_options'); $current = ( isset ($options['wolkal3000_timer']) ? $options['wolkal3000_timer'] : 60 ); // default 60 minutes - $interval = 60 * int($current); // wir speichern Minuten + $interval = 60 * $current; // wir speichern Minuten $schedules['wolkal3000_interval'] = array( 'interval' => $interval, 'display' => esc_html__( 'Calendar fetch interval' ),