From 9d33745b65e4301055372bf380c82c1aa57d4fbe Mon Sep 17 00:00:00 2001 From: marcusquinn <6428977+marcusquinn@users.noreply.github.com> Date: Tue, 15 Apr 2025 23:15:28 +0100 Subject: [PATCH] Fix issue #36: Add file existence check for minified assets --- inc/functions/assets.php | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/inc/functions/assets.php b/inc/functions/assets.php index d2c1151..6877867 100644 --- a/inc/functions/assets.php +++ b/inc/functions/assets.php @@ -22,7 +22,16 @@ defined('ABSPATH') || exit; function wu_get_asset($asset, $assets_dir = 'img', $base_dir = 'assets') { if ( ! defined('SCRIPT_DEBUG') || ! SCRIPT_DEBUG) { - $asset = preg_replace('/(?