Filter out blank urls for commentors. Fixes #5789.

git-svn-id: https://develop.svn.wordpress.org/trunk@11249 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Peter Westwood 2009-05-10 07:26:30 +00:00
parent 79a1dd8466
commit a99e78ba1e
1 changed files with 2 additions and 1 deletions

View File

@ -193,7 +193,8 @@ function comment_author_IP() {
*/
function get_comment_author_url() {
global $comment;
return apply_filters('get_comment_author_url', $comment->comment_author_url);
$url = ('http://' == $comment->comment_author_url) ? '' : $comment->comment_author_url;
return apply_filters('get_comment_author_url', $url);
}
/**