diff --git a/wp-includes/author-template.php b/wp-includes/author-template.php
index 1b6a948dc5..8eba19a43d 100644
--- a/wp-includes/author-template.php
+++ b/wp-includes/author-template.php
@@ -134,7 +134,7 @@ function the_author_meta($field = '', $user_id = false) {
*/
function get_the_author_link() {
if ( get_the_author_meta('url') ) {
- return '' . get_the_author() . '';
+ return '' . get_the_author() . '';
} else {
return get_the_author();
}
@@ -200,7 +200,7 @@ function the_author_posts_link($deprecated = '') {
return false;
$link = sprintf(
'%3$s',
- get_author_posts_url( $authordata->ID, $authordata->user_nicename ),
+ esc_url( get_author_posts_url( $authordata->ID, $authordata->user_nicename ) ),
esc_attr( sprintf( __( 'Posts by %s' ), get_the_author() ) ),
get_the_author()
);