Skip to content

Commit 08c7699

Browse files
committed
Compatibility with "Widget Options" plugin
1 parent a80e45d commit 08c7699

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/Handlers/FeedShortcode/FeedsShortcodeHandler.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,11 @@ public function __invoke($args = [])
4343
{
4444
// Decode HTML entities in the arguments
4545
$args = is_array($args) ? $args : [];
46-
$args = array_map('html_entity_decode', $args);
46+
foreach ($args as $key => $value) {
47+
if (is_string($value)) {
48+
$args[$key] = html_entity_decode($value);
49+
}
50+
}
4751
// Render the template
4852
$result = $this->template->render($args);
4953

0 commit comments

Comments
 (0)