WordPress.org

Make WordPress Core

Ticket #15659: 15659.diff

File 15659.diff, 691 bytes (added by solarissmoke, 7 years ago)
  • wp-admin/includes/class-wp-comments-list-table.php

     
    447447                        $author_url = '';
    448448                $author_url_display = preg_replace( '|http://(www\.)?|i', '', $author_url );
    449449                if ( strlen( $author_url_display ) > 50 )
    450                         $author_url_display = substr( $author_url_display, 0, 49 ) . '...';
     450                        $author_url_display = wp_html_excerpt( $author_url_display, 49 ) . '…';
    451451
    452452                echo "<strong>"; comment_author(); echo '</strong><br />';
    453453                if ( !empty( $author_url ) )