From 317b450edf2d4a62ab44501031a434f3e1b52a92 Mon Sep 17 00:00:00 2001 From: Daniel Kudwien Date: Thu, 22 Aug 2024 11:13:49 +0200 Subject: [PATCH] Fixed PHP fatal error due to summing undefined variables. --- wpvulnerability-run.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/wpvulnerability-run.php b/wpvulnerability-run.php index 738197b..d30fdd9 100644 --- a/wpvulnerability-run.php +++ b/wpvulnerability-run.php @@ -847,8 +847,7 @@ function wpvulnerability_counter_core() { if ( isset( $submenu['index.php'] ) ) { foreach ( $submenu['index.php'] as $key => $value ) { if ( 'update-core.php' === $submenu['index.php'][ $key ][2] ) { - $update_count = $core_updates_count + $wpvulnerability_core_count; - $submenu['index.php'][ $key ][0] .= ' ' . $update_count . ''; // phpcs:ignore + $submenu['index.php'][ $key ][0] .= ' ' . $wpvulnerability_core_total . ''; // phpcs:ignore break; } }