diff --git a/wp-includes/comment-template.php b/wp-includes/comment-template.php
index a739f622b8..9a2064cec2 100644
a
|
b
|
function get_cancel_comment_reply_link( $text = '', $post = null ) { |
1941 | 1941 | $post = get_post( $post ); |
1942 | 1942 | $reply_to_id = $post ? _get_comment_reply_id( $post->ID ) : 0; |
1943 | 1943 | $style = 0 !== $reply_to_id ? '' : ' style="display:none;"'; |
1944 | | $link = esc_html( remove_query_arg( array( 'replytocom', 'unapproved', 'moderation-hash' ) ) ) . '#respond'; |
| 1944 | $link = esc_url( remove_query_arg( array( 'replytocom', 'unapproved', 'moderation-hash' ) ) ) . '#respond'; |
1945 | 1945 | |
1946 | 1946 | $formatted_link = '<a rel="nofollow" id="cancel-comment-reply-link" href="' . $link . '"' . $style . '>' . $text . '</a>'; |
1947 | 1947 | |