WordPress.org

Make WordPress Core

Changeset 28251


Ignore:
Timestamp:
05/04/2014 10:20:47 PM (6 years ago)
Author:
wonderboymusic
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/general-template.php

    r28208 r28251  
    795795
    796796    // If there's an author
    797     if ( is_author() ) {
     797    if ( is_author() && ! is_post_type_archive() ) {
    798798        $author = get_queried_object();
    799799        if ( $author )
     
    19781978     * @since 0.71
    19791979     *
    1980      * @param string $the_weekday 
     1980     * @param string $the_weekday
    19811981     */
    19821982    $the_weekday = apply_filters( 'the_weekday', $the_weekday );
     
    20102010     * @since 0.71
    20112011     *
    2012      * @param string $the_weekday_date 
     2012     * @param string $the_weekday_date
    20132013     * @param string $before           The HTML to output before the date.
    20142014     * @param string $after            The HTML to output after the date.
     
    24112411 * and see {@link add_query_arg()} for more information.
    24122412 *
    2413  * The 'before_page_number' and 'after_page_number' arguments allow users to 
     2413 * The 'before_page_number' and 'after_page_number' arguments allow users to
    24142414 * augment the links themselves. Typically this might be to add context to the
    24152415 * numbered links so that screen reader users understand what the links are for.
    2416  * The text strings are added before and after the page number - within the 
     2416 * The text strings are added before and after the page number - within the
    24172417 * anchor tag.
    24182418 *
Note: See TracChangeset for help on using the changeset viewer.