WordPress.org

Make WordPress Core

Ticket #40916: class-wp-comments-list-table-v2.diff

File class-wp-comments-list-table-v2.diff, 628 bytes (added by adam3128, 4 years ago)

Version 2 of solution with target blank and noopener

  • class-wp-comments-list-table.php

     
    685685
    686686                echo "<strong>"; comment_author( $comment ); echo '</strong><br />';
    687687                if ( ! empty( $author_url_display ) ) {
    688                         printf( '<a href="%s">%s</a><br />', esc_url( $author_url ), esc_html( $author_url_display ) );
     688                        printf( '<a href="%s" rel="noopener noreferrer" target="_blank">%s</a><br />', esc_url( $author_url ), esc_html( $author_url_display ) );
    689689                }
    690690
    691691                if ( $this->user_can ) {