From 1299e654953a5e4095e15842418d99b757203631 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Mon, 4 Mar 2013 18:25:59 +0100 Subject: [PATCH] OGP description now acts as a replacement for page desc. --- wcfsetup/install/files/lib/system/MetaTagHandler.class.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/wcfsetup/install/files/lib/system/MetaTagHandler.class.php b/wcfsetup/install/files/lib/system/MetaTagHandler.class.php index c013734578..3dea6b9e2b 100644 --- a/wcfsetup/install/files/lib/system/MetaTagHandler.class.php +++ b/wcfsetup/install/files/lib/system/MetaTagHandler.class.php @@ -67,6 +67,11 @@ class MetaTagHandler extends SingletonFactory implements \Countable, \Iterator { 'name' => $name, 'value' => $value ); + + // replace description if Open Graph Protocol tag was given + if ($name == 'og:description') { + $this->objects['description']['value'] = $value; + } } /** -- 2.20.1