Trim comment author urls. see #8386

git-svn-id: https://develop.svn.wordpress.org/trunk@9923 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2008-11-27 17:46:53 +00:00
parent 4ed01d39be
commit 2bede953c4

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