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. Built from https://develop.svn.wordpress.org/trunk@55614 git-svn-id: http://core.svn.wordpress.org/trunk@55126 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
5219039dd3
commit
7714010f60
|
@ -1941,7 +1941,7 @@ function get_cancel_comment_reply_link( $text = '', $post = null ) {
|
||||||
$post = get_post( $post );
|
$post = get_post( $post );
|
||||||
$reply_to_id = $post ? _get_comment_reply_id( $post->ID ) : 0;
|
$reply_to_id = $post ? _get_comment_reply_id( $post->ID ) : 0;
|
||||||
$style = 0 !== $reply_to_id ? '' : ' style="display:none;"';
|
$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>';
|
$formatted_link = '<a rel="nofollow" id="cancel-comment-reply-link" href="' . $link . '"' . $style . '>' . $text . '</a>';
|
||||||
|
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '6.3-alpha-55613';
|
$wp_version = '6.3-alpha-55614';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
|
Loading…
Reference in New Issue