WordPress.org

Make WordPress Core

Ticket #15659: 15659.preg.diff

File 15659.preg.diff, 717 bytes (added by markjaquith, 8 years ago)
  • wp-admin/includes/class-wp-comments-list-table.php

     
    426426                        $author_url = '';
    427427                $author_url_display = preg_replace( '|http://(www\.)?|i', '', $author_url );
    428428                if ( strlen( $author_url_display ) > 50 )
    429                         $author_url_display = substr( $author_url_display, 0, 49 ) . '...';
     429                        $author_url_display = preg_replace( '#&[^;&]{0,6}[^;]$#', '', substr( $author_url_display, 0, 49 ) ) . '...';
    430430
    431431                echo "<strong>"; comment_author(); echo '</strong><br />';
    432432                if ( !empty( $author_url ) )