mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-09 18:08:09 +01:00
Add some CYA clean_url()s
git-svn-id: http://svn.automattic.com/wordpress/trunk@11011 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
2155f6427c
commit
67533a8584
@ -993,9 +993,9 @@ function get_comment_reply_link($args = array(), $comment = null, $post = null)
|
|||||||
$link = '';
|
$link = '';
|
||||||
|
|
||||||
if ( get_option('comment_registration') && !$user_ID )
|
if ( get_option('comment_registration') && !$user_ID )
|
||||||
$link = '<a rel="nofollow" href="' . wp_login_url( get_permalink() ) . '">' . $login_text . '</a>';
|
$link = '<a rel="nofollow" href="' . clean_url( wp_login_url( get_permalink() ) ) . '">' . $login_text . '</a>';
|
||||||
else
|
else
|
||||||
$link = "<a rel='nofollow' class='comment-reply-link' href='" . wp_specialchars( add_query_arg( 'replytocom', $comment->comment_ID ) ) . "#" . $respond_id . "' onclick='return addComment.moveForm(\"$add_below-$comment->comment_ID\", \"$comment->comment_ID\", \"$respond_id\", \"$post->ID\")'>$reply_text</a>";
|
$link = "<a rel='nofollow' class='comment-reply-link' href='" . clean_url( add_query_arg( 'replytocom', $comment->comment_ID ) ) . "#" . $respond_id . "' onclick='return addComment.moveForm(\"$add_below-$comment->comment_ID\", \"$comment->comment_ID\", \"$respond_id\", \"$post->ID\")'>$reply_text</a>";
|
||||||
return apply_filters('comment_reply_link', $before . $link . $after, $args, $comment, $post);
|
return apply_filters('comment_reply_link', $before . $link . $after, $args, $comment, $post);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user