WordPress.org

Make WordPress Core

Ticket #10569: 10569.001.diff

File 10569.001.diff, 1.5 KB (added by aaroncampbell, 10 years ago)
  • trunk/wp-includes/comment-template.php

     
    833833
    834834        /**
    835835         * The email address of the current comment author escaped for use in attributes.
    836          */     
     836         */
    837837        $comment_author_email = $commenter['comment_author_email'];  // Escaped by sanitize_comment_cookies()
    838838
    839839        /**
    840840         * The url of the current comment author escaped for use in attributes.
    841          */     
     841         */
    842842        $comment_author_url = esc_url($commenter['comment_author_url']);
    843843
    844844        /** @todo Use API instead of SELECTs. */
     
    10151015
    10161016        $link = '';
    10171017
    1018         if ( get_option('comment_registration') && !$user_ID )
     1018        if ( get_option('comment_registration') && !$user_ID ) {
    10191019                $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);
    10211022                $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        }
    10221024        return apply_filters('comment_reply_link', $before . $link . $after, $args, $comment, $post);
    10231025}
    10241026