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:
parent
0a16bda6e3
commit
61765b8efd
@ -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;
|
||||
@ -1977,7 +1977,7 @@ function the_weekday() {
|
||||
*
|
||||
* @since 0.71
|
||||
*
|
||||
* @param string $the_weekday
|
||||
* @param string $the_weekday
|
||||
*/
|
||||
$the_weekday = apply_filters( 'the_weekday', $the_weekday );
|
||||
echo $the_weekday;
|
||||
@ -2009,7 +2009,7 @@ function the_weekday_date($before='',$after='') {
|
||||
*
|
||||
* @since 0.71
|
||||
*
|
||||
* @param string $the_weekday_date
|
||||
* @param string $the_weekday_date
|
||||
* @param string $before The HTML to output before the date.
|
||||
* @param string $after The HTML to output after the date.
|
||||
*/
|
||||
@ -2410,10 +2410,10 @@ function language_attributes($doctype = 'html') {
|
||||
* It is possible to add query vars to the link by using the 'add_args' argument
|
||||
* and see {@link add_query_arg()} for more information.
|
||||
*
|
||||
* The 'before_page_number' and 'after_page_number' arguments allow users to
|
||||
* The 'before_page_number' and 'after_page_number' arguments allow users to
|
||||
* augment the links themselves. Typically this might be to add context to the
|
||||
* numbered links so that screen reader users understand what the links are for.
|
||||
* The text strings are added before and after the page number - within the
|
||||
* The text strings are added before and after the page number - within the
|
||||
* anchor tag.
|
||||
*
|
||||
* @since 2.1.0
|
||||
|
Loading…
Reference in New Issue
Block a user