From a99e78ba1ed9062a0b01070012b4b3689adb5218 Mon Sep 17 00:00:00 2001 From: Peter Westwood Date: Sun, 10 May 2009 07:26:30 +0000 Subject: [PATCH] Filter out blank urls for commentors. Fixes #5789. git-svn-id: https://develop.svn.wordpress.org/trunk@11249 602fd350-edb4-49c9-b593-d223f7449a82 --- 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); } /**