From a977c155bf221cf1fd23f76daf1e7b2c73811718 Mon Sep 17 00:00:00 2001 From: westi Date: Sun, 10 May 2009 07:26:30 +0000 Subject: [PATCH] Filter out blank urls for commentors. Fixes #5789. git-svn-id: http://svn.automattic.com/wordpress/trunk@11249 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/comment-template.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wp-includes/comment-template.php b/wp-includes/comment-template.php index c59505fa9f..33cfccab4b 100644 --- a/wp-includes/comment-template.php +++ b/wp-includes/comment-template.php @@ -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); } /**