diff --git a/CHANGELOG.md b/CHANGELOG.md index 4317eac..7e278e0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # SEOMate Changelog +## 2.2.1 - 2024-04-04 +### Fixed +- Fixed a bug where SEOMate could attempt to use string values as callables in `additionalMeta` + ## 2.2.0 - 2024-01-19 ### Added - Sitemaps now include alternate URLs in `` entries, if the `outputAlternate` config setting is `true`. [#79](https://github.com/vaersaagod/seomate/pull/79) diff --git a/composer.json b/composer.json index 0163e65..949ae30 100644 --- a/composer.json +++ b/composer.json @@ -2,7 +2,7 @@ "name": "vaersaagod/seomate", "description": "SEO, mate! It's important.", "type": "craft-plugin", - "version": "2.2.0", + "version": "2.2.1", "keywords": [ "craft", "cms", diff --git a/src/services/MetaService.php b/src/services/MetaService.php index 2c793ba..3bef4e9 100644 --- a/src/services/MetaService.php +++ b/src/services/MetaService.php @@ -463,7 +463,7 @@ public function processAdditionalMeta(array $meta, array $context = [], Settings } foreach ($settings->additionalMeta as $key => $value) { - if (\is_callable($value)) { + if ($value instanceof \Closure) { $r = $value($context); $value = $r; }