| @@ -768,9 +768,9 @@ | ||
| 768 | 768 | public static function get_the_author( $args, $result ) { |
| 769 | 769 | |
| 770 | 770 | $author_info = get_userdata( (int) $result->post_author ); |
| 771 | 771 | $author_link = ( false === $author_info ) ? '' : get_author_posts_url( $author_info->ID ); |
| 772 | - $author_name = ( false === $author_info ) ? '' : ucwords( trim( stripslashes( $author_info->display_name ) ) ); | |
| 772 | + $author_name = ( false === $author_info ) ? '' : ucwords( trim( stripslashes( $author_info->display_name ), " \t\n\r\0\x0B" ) ); | |
| 773 | 773 | |
| 774 | 774 | /** |
| 775 | 775 | * Filter the author name. |
| 776 | 776 | * |