Ticket #8011: respond_id.diff
| File respond_id.diff, 1.0 KB (added by , 18 years ago) |
|---|
-
wp-includes/comment-template.php
929 929 if ( get_option('comment_registration') && !$user_ID ) 930 930 $link = '<a rel="nofollow" href="' . site_url('wp-login.php?redirect_to=' . get_permalink()) . '">' . $login_text . '</a>'; 931 931 else 932 $link = "<a rel='nofollow' href='" . wp_specialchars( add_query_arg( 'replytocom', $comment->comment_ID ) ) . "# respond' onclick='return addComment.moveForm(\"$add_below-$comment->comment_ID\", \"$comment->comment_ID\", \"$respond_id\")'>$reply_text</a>";932 $link = "<a rel='nofollow' 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\")'>$reply_text</a>"; 933 933 934 934 return apply_filters('comment_reply_link', $before . $link . $after, $args, $comment, $post); 935 935 }