mirror of
https://github.com/WordPress/WordPress.git
synced 2024-06-27 23:35:04 +02:00
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. Built from https://develop.svn.wordpress.org/trunk@28251 git-svn-id: http://core.svn.wordpress.org/trunk@28079 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
2c97f4640b
commit
a2067a7324
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue
Block a user