mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
Comments: Use correct escaping function in get_cancel_comment_reply_link().
Follow-up to [9112], [9406], [11011], [11380], [11383], [44659]. Props chintan1896, ankitmaru. Fixes #58025. git-svn-id: https://develop.svn.wordpress.org/trunk@55614 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -1941,7 +1941,7 @@ function get_cancel_comment_reply_link( $text = '', $post = null ) {
|
||||
$post = get_post( $post );
|
||||
$reply_to_id = $post ? _get_comment_reply_id( $post->ID ) : 0;
|
||||
$style = 0 !== $reply_to_id ? '' : ' style="display:none;"';
|
||||
$link = esc_html( remove_query_arg( array( 'replytocom', 'unapproved', 'moderation-hash' ) ) ) . '#respond';
|
||||
$link = esc_url( remove_query_arg( array( 'replytocom', 'unapproved', 'moderation-hash' ) ) ) . '#respond';
|
||||
|
||||
$formatted_link = '<a rel="nofollow" id="cancel-comment-reply-link" href="' . $link . '"' . $style . '>' . $text . '</a>';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user