Ticket #10569: 10569.001.diff
File 10569.001.diff, 1.5 KB (added by , 16 years ago) |
---|
-
trunk/wp-includes/comment-template.php
833 833 834 834 /** 835 835 * The email address of the current comment author escaped for use in attributes. 836 */ 836 */ 837 837 $comment_author_email = $commenter['comment_author_email']; // Escaped by sanitize_comment_cookies() 838 838 839 839 /** 840 840 * The url of the current comment author escaped for use in attributes. 841 */ 841 */ 842 842 $comment_author_url = esc_url($commenter['comment_author_url']); 843 843 844 844 /** @todo Use API instead of SELECTs. */ … … 1015 1015 1016 1016 $link = ''; 1017 1017 1018 if ( get_option('comment_registration') && !$user_ID ) 1018 if ( get_option('comment_registration') && !$user_ID ) { 1019 1019 $link = '<a rel="nofollow" class="comment-reply-login" href="' . esc_url( wp_login_url( get_permalink() ) ) . '">' . $login_text . '</a>'; 1020 else 1020 } else { 1021 $reply_text = apply_filters('comment_reply_link_text', $reply_text, $args, $comment, $post); 1021 1022 $link = "<a rel='nofollow' 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>"; 1023 } 1022 1024 return apply_filters('comment_reply_link', $before . $link . $after, $args, $comment, $post); 1023 1025 } 1024 1026