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. Built from https://develop.svn.wordpress.org/trunk@33047 git-svn-id: http://core.svn.wordpress.org/trunk@33018 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
c919a1c1e9
commit
f59f2a8e4f
|
@ -1437,7 +1437,7 @@ function get_comment_reply_link( $args = array(), $comment = null, $post = null
|
||||||
$args['add_below'], $comment->comment_ID, $args['respond_id'], $post->ID
|
$args['add_below'], $comment->comment_ID, $args['respond_id'], $post->ID
|
||||||
);
|
);
|
||||||
|
|
||||||
$link = sprintf( "<a class='comment-reply-link' href='%s' onclick='%s' aria-label='%s'>%s</a>",
|
$link = sprintf( "<a rel='nofollow' class='comment-reply-link' href='%s' onclick='%s' aria-label='%s'>%s</a>",
|
||||||
esc_url( add_query_arg( 'replytocom', $comment->comment_ID, get_permalink( $post->ID ) ) ) . "#" . $args['respond_id'],
|
esc_url( add_query_arg( 'replytocom', $comment->comment_ID, get_permalink( $post->ID ) ) ) . "#" . $args['respond_id'],
|
||||||
$onclick,
|
$onclick,
|
||||||
esc_attr( sprintf( $args['reply_to_text'], $comment->comment_author ) ),
|
esc_attr( sprintf( $args['reply_to_text'], $comment->comment_author ) ),
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '4.3-beta1-33046';
|
$wp_version = '4.3-beta1-33047';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
|
Loading…
Reference in New Issue