Ticket #16881: comment-template.17521.php.diff
File comment-template.17521.php.diff, 2.3 KB (added by , 14 years ago) |
---|
-
wp-includes/comment-template.php
1057 1057 $link = ''; 1058 1058 1059 1059 if ( get_option('comment_registration') && !$user_ID ) 1060 $link = '<a rel="nofollow"class="comment-reply-login" href="' . esc_url( wp_login_url( get_permalink() ) ) . '">' . $login_text . '</a>';1060 $link = '<a class="comment-reply-login" href="' . esc_url( wp_login_url( get_permalink() ) ) . '">' . $login_text . '</a>'; 1061 1061 else 1062 1062 $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>"; 1063 1063 return apply_filters('comment_reply_link', $before . $link . $after, $args, $comment, $post); … … 1108 1108 return false; 1109 1109 1110 1110 if ( get_option('comment_registration') && !$user_ID ) { 1111 $link = '<a rel="nofollow" href="' . wp_login_url( get_permalink() ) . '">' . $login_text . '</a>';1111 $link = '<a class="comment-reply-login" href="' . esc_url( wp_login_url( get_permalink() ) ) . '">' . $login_text . '</a>'; 1112 1112 } else { 1113 $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>";1113 $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>"; 1114 1114 } 1115 1115 return apply_filters('post_comments_link', $before . $link . $after, $post); 1116 1116 } … … 1141 1141 1142 1142 $style = isset($_GET['replytocom']) ? '' : ' style="display:none;"'; 1143 1143 $link = esc_html( remove_query_arg('replytocom') ) . '#respond'; 1144 return apply_filters('cancel_comment_reply_link', '<a rel="nofollow"id="cancel-comment-reply-link" href="' . $link . '"' . $style . '>' . $text . '</a>', $link, $text);1144 return apply_filters('cancel_comment_reply_link', '<a id="cancel-comment-reply-link" href="' . $link . '"' . $style . '>' . $text . '</a>', $link, $text); 1145 1145 } 1146 1146 1147 1147 /**