diff --git a/functions.php b/functions.php index 9bf2bcacecefece6294075a0b3e6b6e819a3ff79..627055f85a9cecaaa26d35099eb61e98518de8c3 100644 --- a/functions.php +++ b/functions.php @@ -3667,7 +3667,11 @@ $rfc822_date = date('r', strtotime($line["updated"])); - print "<pubDate>$rfc822_date</pubDate>"; + print "<pubDate>$rfc822_date</pubDate>"; + + if ($line["author"]) { + print "<author>" . htmlspecialchars($line["author"]) . "</author>"; + } print "<title>" . htmlspecialchars($line["title"]) . "</title>";