Tidy comment_author_url_link just like we do on the bookmarks page
git-svn-id: http://svn.automattic.com/wordpress/trunk@3723 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
7fea857c9f
commit
b33778b079
|
@ -75,6 +75,10 @@ function get_comment_author_url_link( $linktext = '', $before = '', $after = ''
|
||||||
global $comment;
|
global $comment;
|
||||||
$url = get_comment_author_url();
|
$url = get_comment_author_url();
|
||||||
$display = ($linktext != '') ? $linktext : $url;
|
$display = ($linktext != '') ? $linktext : $url;
|
||||||
|
$display = str_replace( 'http://www.', '', $display );
|
||||||
|
$display = str_replace( 'http://', '', $display );
|
||||||
|
if ( '/' == substr($display, -1) )
|
||||||
|
$display = substr($display, 0, -1);
|
||||||
$return = "$before<a href='$url' rel='external'>$display</a>$after";
|
$return = "$before<a href='$url' rel='external'>$display</a>$after";
|
||||||
return apply_filters('get_comment_author_url_link', $return);
|
return apply_filters('get_comment_author_url_link', $return);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue