Set the proper value for wp_title() when is_author() and is_post_type_archive() are both true. post_type should always win due to the precedence indicated in get_queried_object().

Props mordauk.
Fixes #25398.



git-svn-id: https://develop.svn.wordpress.org/trunk@28251 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Scott Taylor 2014-05-04 22:20:47 +00:00
parent 0a16bda6e3
commit 61765b8efd

View File

@ -794,7 +794,7 @@ function wp_title($sep = '»', $display = true, $seplocation = '') {
}
// If there's an author
if ( is_author() ) {
if ( is_author() && ! is_post_type_archive() ) {
$author = get_queried_object();
if ( $author )
$title = $author->display_name;