diff --git a/src/wp-includes/comment-template.php b/src/wp-includes/comment-template.php index 26e2818b1d..78635778f2 100644 --- a/src/wp-includes/comment-template.php +++ b/src/wp-includes/comment-template.php @@ -1437,7 +1437,7 @@ function get_comment_reply_link( $args = array(), $comment = null, $post = null $args['add_below'], $comment->comment_ID, $args['respond_id'], $post->ID ); - $link = sprintf( "%s", + $link = sprintf( "%s", esc_url( add_query_arg( 'replytocom', $comment->comment_ID, get_permalink( $post->ID ) ) ) . "#" . $args['respond_id'], $onclick, esc_attr( sprintf( $args['reply_to_text'], $comment->comment_author ) ),