Make WordPress Core

Ticket #22889: 22889.3.patch

File 22889.3.patch, 749 bytes (added by joostdevalk, 10 years ago)

Patch to add nofollow to ?replytocom links

  • wp-includes/comment-template.php

     
    14371437                        $args['add_below'], $comment->comment_ID, $args['respond_id'], $post->ID
    14381438                );
    14391439
    1440                 $link = sprintf( "<a class='comment-reply-link' href='%s' onclick='%s' aria-label='%s'>%s</a>",
     1440                $link = sprintf( "<a rel='nofollow' class='comment-reply-link' href='%s' onclick='%s' aria-label='%s'>%s</a>",
    14411441                        esc_url( add_query_arg( 'replytocom', $comment->comment_ID, get_permalink( $post->ID ) ) ) . "#" . $args['respond_id'],
    14421442                        $onclick,
    14431443                        esc_attr( sprintf( $args['reply_to_text'], $comment->comment_author ) ),