From 7508ea94d7fdaecf603a73ac46fb36fdd8829560 Mon Sep 17 00:00:00 2001 From: Caleb Burks Date: Tue, 8 Oct 2024 17:07:27 -0400 Subject: [PATCH] Prevent loading missing files. (#5918) --- 000-vip-init.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/000-vip-init.php b/000-vip-init.php index a5710ad1e8..e47492d3fa 100644 --- a/000-vip-init.php +++ b/000-vip-init.php @@ -250,7 +250,7 @@ do { foreach ( $require_telemetry_files as $file ) { if ( ! file_exists( $file ) ) { - break; + break 2; } } foreach ( $require_telemetry_files as $file ) { @@ -258,6 +258,8 @@ } } while ( false ); +unset( $require_telemetry_files ); + add_action( 'init', [ WPComVIP_Restrictions::class, 'instance' ] ); //enabled on selected sites for now