Make WordPress Core

Changeset 3723


Ignore:
Timestamp:
04/19/2006 08:36:45 AM (19 years ago)
Author:
matt
Message:

Tidy comment_author_url_link just like we do on the bookmarks page

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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);
Note: See TracChangeset for help on using the changeset viewer.