WordPress.org

Make WordPress Core

Ticket #16881: 16881.patch

File 16881.patch, 2.2 KB (added by c3mdigital, 8 years ago)

refresh of remove rel="nofollow" from comment-template.php

  • wp-includes/comment-template.php

     
    10561056        $link = '';
    10571057
    10581058        if ( get_option('comment_registration') && !$user_ID )
    1059                 $link = '<a rel="nofollow" class="comment-reply-login" href="' . esc_url( wp_login_url( get_permalink() ) ) . '">' . $login_text . '</a>';
     1059                $link = '<a class="comment-reply-login" href="' . esc_url( wp_login_url( get_permalink() ) ) . '">' . $login_text . '</a>';
    10601060        else
    10611061                $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>";
    10621062        return apply_filters('comment_reply_link', $before . $link . $after, $args, $comment, $post);
     
    11071107                return false;
    11081108
    11091109        if ( get_option('comment_registration') && !$user_ID ) {
    1110                 $link = '<a rel="nofollow" href="' . wp_login_url( get_permalink() ) . '">' . $login_text . '</a>';
     1110                $link = '<a href="' . wp_login_url( get_permalink() ) . '">' . $login_text . '</a>';
    11111111        } else {
    1112                 $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>";
     1112                $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>";
    11131113        }
    11141114        return apply_filters('post_comments_link', $before . $link . $after, $post);
    11151115}
     
    11401140
    11411141        $style = isset($_GET['replytocom']) ? '' : ' style="display:none;"';
    11421142        $link = esc_html( remove_query_arg('replytocom') ) . '#respond';
    1143         return apply_filters('cancel_comment_reply_link', '<a rel="nofollow" id="cancel-comment-reply-link" href="' . $link . '"' . $style . '>' . $text . '</a>', $link, $text);
     1143        return apply_filters('cancel_comment_reply_link', '<a id="cancel-comment-reply-link" href="' . $link . '"' . $style . '>' . $text . '</a>', $link, $text);
    11441144}
    11451145
    11461146/**