Ticket #10569: 10569.001.diff

File 10569.001.diff, 1.5 KB (added by aaroncampbell, 4 years ago)
Line 
1Index: trunk/wp-includes/comment-template.php
2===================================================================
3--- trunk/wp-includes/comment-template.php      (revision 11779)
4+++ trunk/wp-includes/comment-template.php      (working copy)
5@@ -833,12 +833,12 @@
6 
7        /**
8         * The email address of the current comment author escaped for use in attributes.
9-        */     
10+        */
11        $comment_author_email = $commenter['comment_author_email'];  // Escaped by sanitize_comment_cookies()
12 
13        /**
14         * The url of the current comment author escaped for use in attributes.
15-        */     
16+        */
17        $comment_author_url = esc_url($commenter['comment_author_url']);
18 
19        /** @todo Use API instead of SELECTs. */
20@@ -1015,10 +1015,12 @@
21 
22        $link = '';
23 
24-       if ( get_option('comment_registration') && !$user_ID )
25+       if ( get_option('comment_registration') && !$user_ID ) {
26                $link = '<a rel="nofollow" class="comment-reply-login" href="' . esc_url( wp_login_url( get_permalink() ) ) . '">' . $login_text . '</a>';
27-       else
28+       } else {
29+               $reply_text = apply_filters('comment_reply_link_text', $reply_text, $args, $comment, $post);
30                $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>";
31+       }
32        return apply_filters('comment_reply_link', $before . $link . $after, $args, $comment, $post);
33 }
34