From a0c6eafbbc852a231cf6cc2673ba13c68d71d5b2 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Thu, 7 Feb 2008 17:13:42 +0100 Subject: [PATCH] simplepie: fix entry_author parsing --- functions.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/functions.php b/functions.php index 47041088..0b4a32a4 100644 --- a/functions.php +++ b/functions.php @@ -880,7 +880,8 @@ $entry_comments = strip_tags($item->data["comments"]); if ($item->get_author()) { $entry_author_item = $item->get_author(); - $entry_author = $entry_author_item->get_name(); + $entry_author = $entry_author_item->get_name(); + if (!$entry_author) $entry_author = $entry_author_item->get_email(); } } else { $entry_comments = strip_tags($item["comments"]); -- 2.39.5