mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-03-30 10:14:31 +00:00
deprecate wp_specialchars() in favor of esc_html(). Encode quotes for esc_html() as in esc_attr(), to improve plugin security.
git-svn-id: https://develop.svn.wordpress.org/trunk@11380 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -1078,7 +1078,7 @@ function get_cancel_comment_reply_link($text = '') {
|
||||
$text = __('Click here to cancel reply.');
|
||||
|
||||
$style = isset($_GET['replytocom']) ? '' : ' style="display:none;"';
|
||||
$link = wp_specialchars( remove_query_arg('replytocom') ) . '#respond';
|
||||
$link = esc_html( remove_query_arg('replytocom') ) . '#respond';
|
||||
return apply_filters('cancel_comment_reply_link', '<a rel="nofollow" id="cancel-comment-reply-link" href="' . $link . '"' . $style . '>' . $text . '</a>', $link, $text);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user