Skip to content

Commit

Permalink
Prevent loading missing files. (#5918)
Browse files Browse the repository at this point in the history
  • Loading branch information
WPprodigy authored Oct 8, 2024
1 parent e69f10b commit 7508ea9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion 000-vip-init.php
Original file line number Diff line number Diff line change
Expand Up @@ -250,14 +250,16 @@
do {
foreach ( $require_telemetry_files as $file ) {
if ( ! file_exists( $file ) ) {
break;
break 2;
}
}
foreach ( $require_telemetry_files as $file ) {
require_once $file;
}
} while ( false );

unset( $require_telemetry_files );

add_action( 'init', [ WPComVIP_Restrictions::class, 'instance' ] );

//enabled on selected sites for now
Expand Down

0 comments on commit 7508ea9

Please sign in to comment.