Trim comment author urls. see #8386

git-svn-id: http://svn.automattic.com/wordpress/trunk@9923 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2008-11-27 17:46:53 +00:00
parent 0447161919
commit 102c6ad0e9
1 changed files with 2 additions and 0 deletions

View File

@ -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) . '...';