WordPress.org

Make WordPress Core

Ticket #15659: class-wp-comments-list-table.php.patch

File class-wp-comments-list-table.php.patch, 661 bytes (added by brettz95, 3 years ago)

Simple patch to avoid non-well-formed XHTML

  • 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 = htmlentities(substr( $author_url_display, 0, 49 ), ENT_QUOTES, "UTF-8") . '...'; 
    430430 
    431431                echo "<strong>"; comment_author(); echo '</strong><br />'; 
    432432                if ( !empty( $author_url ) )