case for case sensitive metadata grav-admin-plugin#1370

This commit is contained in:
Andy Miller
2018-03-18 21:37:17 -06:00
parent b515a5add0
commit 8f1639c10b
2 changed files with 3 additions and 0 deletions

View File

@@ -9,6 +9,7 @@
* Improved Zip extraction error codes [#1922](https://github.com/getgrav/grav/issues/1922)
1. [](#bugfix)
* Fix an issue with Markdown Video and Audio that broke after Parsedown 1.7.0 Security updates [#1924](https://github.com/getgrav/grav/issues/1924)
* Fixx for case-sensitive page metadata [admin#1370](https://github.com/getgrav/grav-plugin-admin/issues/1370)
# v1.4.1

View File

@@ -1499,6 +1499,8 @@ class Page
// Build an array of meta objects..
foreach ((array)$metadata as $key => $value) {
// Lowercase the key
$key = strtolower($key);
// If this is a property type metadata: "og", "twitter", "facebook" etc
// Backward compatibility for nested arrays in metas
if (is_array($value)) {