Make WordPress Core

Ticket #17025: 17025.10.diff

File 17025.10.diff, 877 bytes (added by rafiahmedd, 3 years ago)

Thank @audrasjb I here is the new patch

  • src/wp-includes/author-template.php

    diff --git a/src/wp-includes/author-template.php b/src/wp-includes/author-template.php
    index e129e6f701..24af70557b 100644
    a b function wp_list_authors( $args = '' ) { 
    458458                }
    459459
    460460                if ( $args['show_fullname'] && $author->first_name && $author->last_name ) {
    461                         $name = "$author->first_name $author->last_name";
     461
     462                        $full_name = $author->first_name. ' ' .$author->last_name;
     463
     464                        /**
     465                        * Filters to modify author full name.
     466                        *
     467                        * @since 6.0.0
     468                        *
     469                        * @param string   $full_name  Full Name of the author default is ( $author->first_name. ' ' .$author->last_name )
     470                        * @param object   $author     Author data in object format
     471                        */
     472
     473                        $name = apply_filters( 'wp_list_author_full_name', $full_name, $author);
    462474                } else {
    463475                        $name = $author->display_name;
    464476                }