From 6a3f91be409624d6a1266726ffe7ce6e5772c1e0 Mon Sep 17 00:00:00 2001 From: Dzikri Aziz Date: Sat, 7 Oct 2023 21:10:28 +0700 Subject: [PATCH] Ensure manifest file is an actual file before using it --- vite-for-wp.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vite-for-wp.php b/vite-for-wp.php index 33c2068..e116216 100644 --- a/vite-for-wp.php +++ b/vite-for-wp.php @@ -38,7 +38,7 @@ function get_manifest( string $manifest_dir ): object { return $manifests[ $manifest_path ]; } - if ( is_readable( $manifest_path ) ) { + if ( is_file( $manifest_path ) && is_readable( $manifest_path ) ) { break; }