Skip to content

Commit

Permalink
composer.json // make use of worpdress-stubs for pslam.
Browse files Browse the repository at this point in the history
  • Loading branch information
Chrico committed Dec 16, 2022
1 parent b17fb12 commit fddfda6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Handler/ScriptHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -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']);
}

Expand Down

0 comments on commit fddfda6

Please sign in to comment.