WordPress.org

Make WordPress Core

Ticket #25398: 25398.patch

File 25398.patch, 429 bytes (added by mordauk, 6 years ago)

Add ! is_post_type_archive() to is_author() check

  • wp-includes/general-template.php

     
    602602        }
    603603
    604604        // If there's an author
    605         if ( is_author() ) {
     605        if ( is_author() && ! is_post_type_archive() ) {
    606606                $author = get_queried_object();
    607607                if ( $author )
    608608                        $title = $author->display_name;