From fddfda69813d7e24c1612d199ab21390a0d75854 Mon Sep 17 00:00:00 2001 From: chrico Date: Fri, 16 Dec 2022 14:21:15 +0100 Subject: [PATCH] composer.json // make use of worpdress-stubs for pslam. --- src/Handler/ScriptHandler.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Handler/ScriptHandler.php b/src/Handler/ScriptHandler.php index 4b8d1c2..7d8c379 100644 --- a/src/Handler/ScriptHandler.php +++ b/src/Handler/ScriptHandler.php @@ -95,7 +95,7 @@ public function register(Asset $asset): bool } $translation = $asset->translation(); - if ($translation['domain'] !== '' && $translation['path']) { + if ($translation['domain'] !== '') { wp_set_script_translations($handle, $translation['domain'], $translation['path']); }