Make WordPress Core

Ticket #40916: 40916.rel.diff

File 40916.rel.diff, 738 bytes (added by sabernhardt, 3 years ago)

adding rel attribute without target="_blank", including comment

  • src/wp-admin/includes/class-wp-comments-list-table.php

     
    947947                echo '</strong><br />';
    948948
    949949                if ( ! empty( $author_url_display ) ) {
    950                         printf( '<a href="%s">%s</a><br />', esc_url( $author_url ), esc_html( $author_url_display ) );
     950                        // Print link to author URL, and disallow referrer information (without using target="_blank").
     951                        printf( '<a href="%s" rel="noopener noreferrer">%s</a><br />', esc_url( $author_url ), esc_html( $author_url_display ) );
    951952                }
    952953
    953954                if ( $this->user_can ) {