diff --git a/src/wp-includes/comment.php b/src/wp-includes/comment.php index 41a1dc3f9f..4c78eb9b6a 100644 --- a/src/wp-includes/comment.php +++ b/src/wp-includes/comment.php @@ -3353,7 +3353,11 @@ function wp_comments_personal_data_exporter( $email_address, $page = 1 ) { case 'comment_link': $value = get_comment_link( $comment->comment_ID ); - $value = '' . $value . ''; + $value = sprintf( + '%s', + esc_url( $value ), + esc_html( $value ) + ); break; }