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:
parent
0447161919
commit
102c6ad0e9
|
@ -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) . '...';
|
||||
|
||||
|
|
Loading…
Reference in New Issue