Skip to content

Commit

Permalink
Fix inverted logic for validate_path() check
Browse files Browse the repository at this point in the history
  • Loading branch information
mboynes committed Feb 28, 2024
1 parent d74ecb6 commit b249179
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 b249179

Please sign in to comment.