WordPress.org

Make WordPress Core

Ticket #15046: author-template_get_the_author_meta.patch

File author-template_get_the_author_meta.patch, 594 bytes (added by drzraf, 4 years ago)
  • wp-includes/author-template.php

     
    204204        $link = sprintf( 
    205205                '<a href="%1$s" title="%2$s">%3$s</a>', 
    206206                get_author_posts_url( $authordata->ID, $authordata->user_nicename ), 
    207                 esc_attr( sprintf( __( 'Posts by %s' ), get_the_author() ) ), 
     207                esc_attr( sprintf( __( 'Posts by %s' ), get_the_author_meta('display_name') )), 
    208208                get_the_author() 
    209209        ); 
    210210        echo apply_filters( 'the_author_posts_link', $link );