From e7d8a59d6908a402ab075ea46eedc24475c140d6 Mon Sep 17 00:00:00 2001 From: Marcel Werk Date: Sat, 14 May 2022 12:59:48 +0200 Subject: [PATCH] Support for meta tags during article import --- .../files/lib/system/importer/ArticleImporter.class.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/wcfsetup/install/files/lib/system/importer/ArticleImporter.class.php b/wcfsetup/install/files/lib/system/importer/ArticleImporter.class.php index f5ab0b6a72..f4b92e4609 100644 --- a/wcfsetup/install/files/lib/system/importer/ArticleImporter.class.php +++ b/wcfsetup/install/files/lib/system/importer/ArticleImporter.class.php @@ -67,6 +67,8 @@ class ArticleImporter extends AbstractImporter 'imageID' => $imageID, 'teaserImageID' => $teaserImageID, 'tags' => (!empty($contentData['tags']) ? $contentData['tags'] : []), + 'metaTitle' => (!empty($contentData['metaTitle']) ? $contentData['metaTitle'] : ''), + 'metaDescription' => (!empty($contentData['metaDescription']) ? $contentData['metaDescription'] : ''), ]; } if (empty($contents)) { @@ -113,6 +115,8 @@ class ArticleImporter extends AbstractImporter 'content' => $contentData['content'], 'imageID' => $contentData['imageID'], 'teaserImageID' => $contentData['teaserImageID'], + 'metaTitle' => $contentData['metaTitle'], + 'metaDescription' => $contentData['metaDescription'], ]); // save tags -- 2.20.1