Merge pull request #11979 from annando/issue-11853

Notices
This commit is contained in:
Hypolite Petovan
2022-10-09 17:45:33 -04:00
committed by GitHub
2 changed files with 7 additions and 3 deletions

View File

@@ -1131,6 +1131,8 @@ class ParseUrl
$content = JsonLD::fetchElement($jsonld, 'logo', 'url', '@type', 'ImageObject');
if (!empty($content) && is_string($content)) {
$jsonldinfo['publisher_img'] = trim($content);
} elseif (!empty($content) && is_array($content)) {
$jsonldinfo['publisher_img'] = trim($content[0]);
}
$content = JsonLD::fetchElement($jsonld, 'brand', 'name', '@type', 'Organization');