Skip to content
Snippets Groups Projects
Commit 6326f883 authored by Grzegorz Rola's avatar Grzegorz Rola
Browse files

Attributes

parent 0530c90b
No related branches found
No related tags found
1 merge request!6Feature/attributes
Pipeline #7814 passed
...@@ -198,8 +198,10 @@ class Notice ...@@ -198,8 +198,10 @@ class Notice
{ {
$attribute_string = sprintf('class="%1$s"', esc_attr($this->getNoticeClass())); $attribute_string = sprintf('class="%1$s"', esc_attr($this->getNoticeClass()));
foreach ($this->attributes as $attribute_name => $attribute_value) { foreach ($this->attributes as $attribute_name => $attribute_value) {
if ('class' !== $attribute_name) {
$attribute_string .= sprintf(' %1$s="%2$s"', esc_html($attribute_name), esc_attr($attribute_value)); $attribute_string .= sprintf(' %1$s="%2$s"', esc_html($attribute_name), esc_attr($attribute_value));
} }
}
return $attribute_string; return $attribute_string;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment