Ticket #5789: 5789.diff

File 5789.diff, 788 bytes (added by DD32, 5 years ago)
Line 
1Index: wp-includes/comment-template.php
2===================================================================
3--- wp-includes/comment-template.php    (revision 6755)
4+++ wp-includes/comment-template.php    (working copy)
5@@ -108,7 +108,7 @@
6        $url    = get_comment_author_url();
7        $author = get_comment_author();
8 
9-       if ( empty( $url ) || 'http://' == $url )
10+       if ( empty( $url ) )
11                $return = $author;
12        else
13                $return = "<a href='$url' rel='external nofollow'>$author</a>";
14@@ -159,7 +159,12 @@
15  */
16 function get_comment_author_url() {
17        global $comment;
18-       return apply_filters('get_comment_author_url', $comment->comment_author_url);
19+       $url = $comment->comment_author_url;
20+
21+       if ( 'http://' == $url )
22+               $url = '';
23+
24+       return apply_filters('get_comment_author_url', $url);
25 }
26 
27 /**