From bc803709533733c596477ef781f8fc1f4271a680 Mon Sep 17 00:00:00 2001 From: Foxaii Date: Sun, 26 May 2013 23:39:33 +0200 Subject: [PATCH] Show author display name in author archive. --- lib/utils.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/utils.php b/lib/utils.php index 29ea532..4a663be 100644 --- a/lib/utils.php +++ b/lib/utils.php @@ -74,7 +74,8 @@ function roots_title() { } elseif (is_year()) { printf(__('Yearly Archives: %s', 'roots'), get_the_date('Y')); } elseif (is_author()) { - printf(__('Author Archives: %s', 'roots'), get_the_author()); + $author = get_queried_object(); + printf(__('Author Archives: %s', 'roots'), $author->display_name); } else { single_cat_title(); }