From 2bede953c45292c6199201fc9b96d68a050720df Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Thu, 27 Nov 2008 17:46:53 +0000 Subject: [PATCH] Trim comment author urls. see #8386 git-svn-id: https://develop.svn.wordpress.org/trunk@9923 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/includes/template.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/wp-admin/includes/template.php b/wp-admin/includes/template.php index 1a73e84cc6..2624a39233 100644 --- a/wp-admin/includes/template.php +++ b/wp-admin/includes/template.php @@ -1934,6 +1934,8 @@ function _wp_comment_row( $comment_id, $mode, $comment_status, $checkbox = true, if ( 'http://' == $author_url ) $author_url = ''; $author_url_display = $author_url; + $author_url_display = str_replace('http://www.', '', $author_url_display); + $author_url_display = str_replace('http://', '', $author_url_display); if ( strlen($author_url_display) > 50 ) $author_url_display = substr($author_url_display, 0, 49) . '...';