Make WordPress Core

Ticket #16881: comment-template.17521.php.diff

File comment-template.17521.php.diff, 2.3 KB (added by joelhardi, 14 years ago)
  • wp-includes/comment-template.php

     
    10571057        $link = '';
    10581058
    10591059        if ( get_option('comment_registration') && !$user_ID )
    1060                 $link = '<a rel="nofollow" class="comment-reply-login" href="' . esc_url( wp_login_url( get_permalink() ) ) . '">' . $login_text . '</a>';
     1060                $link = '<a class="comment-reply-login" href="' . esc_url( wp_login_url( get_permalink() ) ) . '">' . $login_text . '</a>';
    10611061        else
    10621062                $link = "<a class='comment-reply-link' href='" . esc_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>";
    10631063        return apply_filters('comment_reply_link', $before . $link . $after, $args, $comment, $post);
     
    11081108                return false;
    11091109
    11101110        if ( get_option('comment_registration') && !$user_ID ) {
    1111                 $link = '<a rel="nofollow" href="' . wp_login_url( get_permalink() ) . '">' . $login_text . '</a>';
     1111                $link = '<a class="comment-reply-login" href="' . esc_url( wp_login_url( get_permalink() ) ) . '">' . $login_text . '</a>';
    11121112        } else {
    1113                 $link = "<a rel='nofollow' class='comment-reply-link' href='" . get_permalink($post->ID) . "#$respond_id' onclick='return addComment.moveForm(\"$add_below-$post->ID\", \"0\", \"$respond_id\", \"$post->ID\")'>$reply_text</a>";
     1113                $link = "<a class='comment-reply-link' href='" . get_permalink($post->ID) . "#$respond_id' onclick='return addComment.moveForm(\"$add_below-$post->ID\", \"0\", \"$respond_id\", \"$post->ID\")'>$reply_text</a>";
    11141114        }
    11151115        return apply_filters('post_comments_link', $before . $link . $after, $post);
    11161116}
     
    11411141
    11421142        $style = isset($_GET['replytocom']) ? '' : ' style="display:none;"';
    11431143        $link = esc_html( remove_query_arg('replytocom') ) . '#respond';
    1144         return apply_filters('cancel_comment_reply_link', '<a rel="nofollow" id="cancel-comment-reply-link" href="' . $link . '"' . $style . '>' . $text . '</a>', $link, $text);
     1144        return apply_filters('cancel_comment_reply_link', '<a id="cancel-comment-reply-link" href="' . $link . '"' . $style . '>' . $text . '</a>', $link, $text);
    11451145}
    11461146
    11471147/**