X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/febc815b2c9d85be5717da9e8d164bd2daa97e31..16e7b37c7914d753890c1a05a9335f3b43751eb8:/wp-includes/author-template.php diff --git a/wp-includes/author-template.php b/wp-includes/author-template.php index 915805fc..b2b6ea31 100644 --- a/wp-includes/author-template.php +++ b/wp-includes/author-template.php @@ -188,7 +188,12 @@ function the_author_meta( $field = '', $user_id = false ) { */ function get_the_author_link() { if ( get_the_author_meta('url') ) { - return '' . get_the_author() . ''; + return sprintf( '%3$s', + esc_url( get_the_author_meta('url') ), + /* translators: %s: author's display name */ + esc_attr( sprintf( __( 'Visit %s’s website' ), get_the_author() ) ), + get_the_author() + ); } else { return get_the_author(); } @@ -250,9 +255,9 @@ function get_the_author_posts_link() { return; } - $link = sprintf( - '', + $link = sprintf( '', esc_url( get_author_posts_url( $authordata->ID, $authordata->user_nicename ) ), + /* translators: %s: author's display name */ esc_attr( sprintf( __( 'Posts by %s' ), get_the_author() ) ), get_the_author() ); @@ -412,7 +417,12 @@ function wp_list_authors( $args = '' ) { $return .= '
  • '; } - $link = 'display_name) ) . '">' . $name . ''; + $link = sprintf( '%3$s', + get_author_posts_url( $author->ID, $author->user_nicename ), + /* translators: %s: author's display name */ + esc_attr( sprintf( __( 'Posts by %s' ), $author->display_name ) ), + $name + ); if ( ! empty( $args['feed_image'] ) || ! empty( $args['feed'] ) ) { $link .= ' ';