Fix #677 - Output author title with get_the_author

This commit is contained in:
Ben Word
2013-02-08 09:29:57 -06:00
parent 271a3f5921
commit 4093095dc7

View File

@@ -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();
}