Changeset 3723

Show
Ignore:
Timestamp:
04/19/06 08:36:45 (3 years ago)
Author:
matt
Message:

Tidy comment_author_url_link just like we do on the bookmarks page

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/wp-includes/comment-template.php

    r3716 r3723  
    7676    $url = get_comment_author_url(); 
    7777    $display = ($linktext != '') ? $linktext : $url; 
     78    $display = str_replace( 'http://www.', '', $display ); 
     79    $display = str_replace( 'http://', '', $display ); 
     80    if ( '/' == substr($display, -1) ) 
     81        $display = substr($display, 0, -1); 
    7882    $return = "$before<a href='$url' rel='external'>$display</a>$after"; 
    7983    return apply_filters('get_comment_author_url_link', $return);