WordPress.org

Make WordPress Core

Ticket #8633: comment_link_class_selector.diff

File comment_link_class_selector.diff, 1.3 KB (added by mattwalters, 7 years ago)
  • wp-includes/comment-template.php

     
    984984        $link = ''; 
    985985 
    986986        if ( get_option('comment_registration') && !$user_ID ) 
    987                 $link = '<a rel="nofollow" href="' . site_url('wp-login.php?redirect_to=' . get_permalink()) . '">' . $login_text . '</a>'; 
     987                $link = '<a rel="nofollow" class="comment-reply-login" href="' . site_url('wp-login.php?redirect_to=' . get_permalink()) . '">' . $login_text . '</a>'; 
    988988        else 
    989                 $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\", \"$post->ID\")'>$reply_text</a>"; 
     989                $link = "<a rel='nofollow' class='comment-reply-text' 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>"; 
    990990        return apply_filters('comment_reply_link', $before . $link . $after, $args, $comment, $post); 
    991991} 
    992992