Skip to content

Commit

Permalink
fix: reintroduce whitespace after type casting
Browse files Browse the repository at this point in the history
Signed-off-by: Philipp Bammes <[email protected]>
  • Loading branch information
tyrann0us authored Nov 28, 2024
1 parent 268f66f commit e04a108
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/OutputFilter/AttributesOutputFilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public function __invoke(string $html, Asset $asset): string
protected function applyAttributes(\WP_HTML_Tag_Processor $script, array $attributes): void
{
foreach ($attributes as $key => $value) {
$key = esc_attr((string)$key);
$key = esc_attr((string) $key);
if ((string) $script->get_attribute($key)) {
continue;
}
Expand All @@ -61,7 +61,7 @@ protected function applyAttributes(\WP_HTML_Tag_Processor $script, array $attrib
}
$value = is_bool($value)
? esc_attr($key)
: esc_attr((string)$value);
: esc_attr((string) $value);

$script->set_attribute($key, $value);
}
Expand Down

0 comments on commit e04a108

Please sign in to comment.