Make WordPress Core

Ticket #58025: 58025.patch

File 58025.patch, 820 bytes (added by chintan1896, 18 months ago)
  • wp-includes/comment-template.php

    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 ) { 
    19411941        $post        = get_post( $post );
    19421942        $reply_to_id = $post ? _get_comment_reply_id( $post->ID ) : 0;
    19431943        $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';
    19451945
    19461946        $formatted_link = '<a rel="nofollow" id="cancel-comment-reply-link" href="' . $link . '"' . $style . '>' . $text . '</a>';
    19471947