Skip to content

Commit

Permalink
Ensure manifest file is an actual file before using it
Browse files Browse the repository at this point in the history
  • Loading branch information
kucrut committed Oct 7, 2023
1 parent 1341255 commit 6a3f91b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vite-for-wp.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 6a3f91b

Please sign in to comment.