From 4093095dc7dbfef8f82bce546ae90634689ac025 Mon Sep 17 00:00:00 2001 From: Ben Word Date: Fri, 8 Feb 2013 09:29:57 -0600 Subject: [PATCH] Fix #677 - Output author title with get_the_author --- lib/utils.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/utils.php b/lib/utils.php index 7e0dfe1..cf688de 100644 --- a/lib/utils.php +++ b/lib/utils.php @@ -75,9 +75,7 @@ function roots_title() { } elseif (is_year()) { printf(__('Yearly Archives: %s', 'roots'), get_the_date('Y')); } elseif (is_author()) { - global $post; - $author_id = $post->post_author; - printf(__('Author Archives: %s', 'roots'), get_the_author_meta('display_name', $author_id)); + printf(__('Author Archives: %s', 'roots'), get_the_author()); } else { single_cat_title(); }