Show author display name in author archive.

This commit is contained in:
Foxaii
2013-05-26 23:39:33 +02:00
parent f0f2d6b2bd
commit bc80370953

View File

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