WordPress.org

Make WordPress Core

Ticket #37202: 37202.diff

File 37202.diff, 748 bytes (added by henry.wright, 5 years ago)
  • src/wp-includes/general-template.php

    diff --git src/wp-includes/general-template.php src/wp-includes/general-template.php
    index 83eabe8..38820d7 100644
    function get_the_archive_title() { 
    14571457        } elseif ( is_tag() ) {
    14581458                $title = sprintf( __( 'Tag: %s' ), single_tag_title( '', false ) );
    14591459        } elseif ( is_author() ) {
    1460                 $title = sprintf( __( 'Author: %s' ), '<span class="vcard">' . get_the_author() . '</span>' );
     1460                $title = sprintf( __( 'Author: %s' ), '<span class="vcard">' . get_queried_object()->display_name . '</span>' );
    14611461        } elseif ( is_year() ) {
    14621462                $title = sprintf( __( 'Year: %s' ), get_the_date( _x( 'Y', 'yearly archives date format' ) ) );
    14631463        } elseif ( is_month() ) {