Make WordPress Core


Ignore:
Timestamp:
05/10/2009 07:26:30 AM (16 years ago)
Author:
westi
Message:

Filter out blank urls for commentors. Fixes #5789.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/comment-template.php

    r11220 r11249  
    194194function get_comment_author_url() {
    195195    global $comment;
    196     return apply_filters('get_comment_author_url', $comment->comment_author_url);
     196    $url = ('http://' == $comment->comment_author_url) ? '' : $comment->comment_author_url;
     197    return apply_filters('get_comment_author_url', $url);
    197198}
    198199
Note: See TracChangeset for help on using the changeset viewer.