Skip to content

Commit

Permalink
Remove $author_display_name variable
Browse files Browse the repository at this point in the history
  • Loading branch information
sabernhardt committed Jan 21, 2025
1 parent 5ad364f commit dd96342
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/wp-includes/author-template.php
Original file line number Diff line number Diff line change
Expand Up @@ -234,13 +234,12 @@ function get_the_author_link() {
if ( get_the_author_meta( 'url' ) ) {
global $authordata;

$author_url = get_the_author_meta( 'url' );
$author_display_name = get_the_author();
$author_url = get_the_author_meta( 'url' );

$link = sprintf(
'<a href="%1$s" rel="author external">%2$s</a>',
esc_url( $author_url ),
$author_display_name
get_the_author()
);

/**
Expand Down

0 comments on commit dd96342

Please sign in to comment.