Filter out blank urls for commentors. Fixes #5789.

git-svn-id: http://svn.automattic.com/wordpress/trunk@11249 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
westi 2009-05-10 07:26:30 +00:00
parent dc2fb99ce8
commit a977c155bf
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);
}
/**