diff --git a/src/wp-includes/general-template.php b/src/wp-includes/general-template.php index da19b813f4..beae029b13 100644 --- a/src/wp-includes/general-template.php +++ b/src/wp-includes/general-template.php @@ -872,8 +872,8 @@ function wp_get_document_title() { $title['title'] = sprintf( __( 'Search Results for “%s”' ), get_search_query() ); // If on an author archive, use the author's display name. - } elseif ( is_author() && $author = get_queried_object() ) { - $title['title'] = $author->display_name; + } elseif ( is_author() ) { + $title['title'] = get_the_author(); // If on a post type archive, use the post type archive title. } elseif ( is_post_type_archive() ) {