Skip to content

Commit

Permalink
StyleHandler // use correct function to add inline styles.
Browse files Browse the repository at this point in the history
  • Loading branch information
Chrico committed Nov 11, 2021
1 parent e493b21 commit 6383ccc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Handler/StyleHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ public function register(Asset $asset): bool

$cssVars = $asset->cssVars();
if (count($cssVars) > 0) {
wp_add_inline_script($handle, $asset->cssVarsAsString());
wp_add_inline_style($handle, $asset->cssVarsAsString());
}

if (count($asset->data()) > 0) {
Expand Down

0 comments on commit 6383ccc

Please sign in to comment.