diff --git a/class-plugin-autoupdate-filter.php b/class-plugin-autoupdate-filter.php index 74d1738..b83cbef 100644 --- a/class-plugin-autoupdate-filter.php +++ b/class-plugin-autoupdate-filter.php @@ -169,7 +169,7 @@ public function filter_enforce_delay( $update, $item ): bool { if ( false === $has_delay_passed ) { $option_key = 'plugin_update_delays'; $delays = get_option( $option_key, array() ); - if ( isset( $delays[ $plugin_file ][ $plugin_new_version ] ) ) { + if ( isset( $delays[ $plugin_file ][ $plugin_new_version ] ) && is_numeric( $delays[ $plugin_file ][ $plugin_new_version ] ) ) { $delay_date = $delays[ $plugin_file ][ $plugin_new_version ]; // Get the site's date and time format settings.