Skip to content

Commit

Permalink
Merge pull request #274 from alleyinteractive/hotfix/validate-file-logic
Browse files Browse the repository at this point in the history
Fix inverted logic for validate_path() check
  • Loading branch information
mboynes authored Feb 28, 2024
2 parents d74ecb6 + b249179 commit 8f64eba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inc/assets.php
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ function get_asset_dependencies( string $asset ) : array {
}

// Ensure the filepath is valid.
if ( validate_path( $dependency_file ) ) {
if ( ! validate_path( $dependency_file ) ) {
return [];
}

Expand Down

0 comments on commit 8f64eba

Please sign in to comment.