Ticket #16881: 16881.patch
File 16881.patch, 2.2 KB (added by , 10 years ago) |
---|
-
wp-includes/comment-template.php
1056 1056 $link = ''; 1057 1057 1058 1058 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>'; 1060 1060 else 1061 1061 $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>"; 1062 1062 return apply_filters('comment_reply_link', $before . $link . $after, $args, $comment, $post); … … 1107 1107 return false; 1108 1108 1109 1109 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>'; 1111 1111 } 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>"; 1113 1113 } 1114 1114 return apply_filters('post_comments_link', $before . $link . $after, $post); 1115 1115 } … … 1140 1140 1141 1141 $style = isset($_GET['replytocom']) ? '' : ' style="display:none;"'; 1142 1142 $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); 1144 1144 } 1145 1145 1146 1146 /**