From 4470387fcdaa86e2447bbb0afe9cc6fd6fd3d18c Mon Sep 17 00:00:00 2001 From: Nick Green Date: Thu, 17 Oct 2024 08:57:57 -0700 Subject: [PATCH] Check if timestamp is numeric to prevent warnings --- class-plugin-autoupdate-filter.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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.