Ticket #40916: class-wp-comments-list-table-v3.diff
File class-wp-comments-list-table-v3.diff, 963 bytes (added by , 6 years ago) |
---|
-
class-wp-comments-list-table.php
676 676 public function column_author( $comment ) { 677 677 global $comment_status; 678 678 679 $the_comment_class = wp_get_comment_status( $comment ); 680 679 681 $author_url = get_comment_author_url( $comment ); 680 682 681 683 $author_url_display = untrailingslashit( preg_replace( '|^http(s)?://(www\.)?|i', '', $author_url ) ); … … 685 687 686 688 echo "<strong>"; comment_author( $comment ); echo '</strong><br />'; 687 689 if ( ! empty( $author_url_display ) ) { 688 printf( '<a href="%s" >%s</a><br />', esc_url( $author_url), esc_html( $author_url_display ) );690 printf( '<a href="%s" rel="%s">%s</a><br />', esc_url( $author_url ), ('approved'===$the_comment_class?'noreferrer':''), esc_html( $author_url_display ) ); 689 691 } 690 692 691 693 if ( $this->user_can ) {