WordPress.org

Make WordPress Core

Ticket #5789: 5789.diff

File 5789.diff, 788 bytes (added by DD32, 10 years ago)
  • wp-includes/comment-template.php

     
    108108        $url    = get_comment_author_url();
    109109        $author = get_comment_author();
    110110
    111         if ( empty( $url ) || 'http://' == $url )
     111        if ( empty( $url ) )
    112112                $return = $author;
    113113        else
    114114                $return = "<a href='$url' rel='external nofollow'>$author</a>";
     
    159159 */
    160160function get_comment_author_url() {
    161161        global $comment;
    162         return apply_filters('get_comment_author_url', $comment->comment_author_url);
     162        $url = $comment->comment_author_url;
     163
     164        if ( 'http://' == $url )
     165                $url = '';
     166
     167        return apply_filters('get_comment_author_url', $url);
    163168}
    164169
    165170/**