diff --git a/src/Assets/Asset.php b/src/Assets/Asset.php index 8d3ad06..987b81a 100644 --- a/src/Assets/Asset.php +++ b/src/Assets/Asset.php @@ -939,6 +939,8 @@ public function maybe_get_min_file( $url ) { $urls[] = $relative_location; } + $urls = array_unique( $urls ); + // Check for all Urls added to the array. foreach ( $urls as $partial_path ) { $file_path = wp_normalize_path( "{$base_dir}/{$partial_path}" );