WordPress.org

Make WordPress Core

Changeset 33047


Ignore:
Timestamp:
07/02/2015 11:08:42 AM (4 years ago)
Author:
SergeyBiryukov
Message:

Restore rel='nofollow' for comment reply links to reduce extra crawling by search engines.

This reverts [16230], which didn't have enough review at the time of commit.

props joostdevalk.
see #22889, #18547, #16881.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/comment-template.php

    r33042 r33047  
    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,
Note: See TracChangeset for help on using the changeset viewer.