Revert "cast interval to int in case of unexpected option setting"
This reverts commit 66d399832e
.
This commit is contained in:
parent
66d399832e
commit
44960a2ad4
|
@ -35,7 +35,7 @@ add_filter( 'cron_schedules', 'wolkal3000_cron_interval' );
|
||||||
function wolkal3000_cron_interval( $schedules ) {
|
function wolkal3000_cron_interval( $schedules ) {
|
||||||
$options = get_option('wolkal3000_options');
|
$options = get_option('wolkal3000_options');
|
||||||
$current = ( isset ($options['wolkal3000_timer']) ? $options['wolkal3000_timer'] : 60 ); // default 60 minutes
|
$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(
|
$schedules['wolkal3000_interval'] = array(
|
||||||
'interval' => $interval,
|
'interval' => $interval,
|
||||||
'display' => esc_html__( 'Calendar fetch interval' ),
|
'display' => esc_html__( 'Calendar fetch interval' ),
|
||||||
|
|
Reference in New Issue