Make WordPress Core

Ticket #8011: respond_id.diff

File respond_id.diff, 1.0 KB (added by filosofo, 18 years ago)
  • wp-includes/comment-template.php

     
    929929        if ( get_option('comment_registration') && !$user_ID )
    930930                $link = '<a rel="nofollow" href="' . site_url('wp-login.php?redirect_to=' . get_permalink()) . '">' . $login_text . '</a>';
    931931        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>";
    933933
    934934        return apply_filters('comment_reply_link', $before . $link . $after, $args, $comment, $post);
    935935}