WordPress.org

Make WordPress Core

Ticket #42713: 42713.author-template.patch

File 42713.author-template.patch, 663 bytes (added by Hardik Amipara, 3 years ago)

Patch for author-template.php

  • wp-includes/author-template.php

     
    436436
    437437                if ( $args['show_fullname'] && $author->first_name && $author->last_name ) {
    438438                        $name = "$author->first_name $author->last_name";
     439                } else if ( $args['show_fullname'] == false && ! empty( $author->first_name ) ) {
     440                        $name = "$author->first_name";
     441                } else if ( $args['show_fullname'] == false && ! empty( $author->last_name ) ) {
     442                        $name = "$author->last_name";
    439443                } else {
    440444                        $name = $author->display_name;
    441445                }