Ticket #40916: class-wp-comments-list-table.diff
File class-wp-comments-list-table.diff, 1.1 KB (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 if('approved' === $the_comment_class) { 691 printf( '<a href="%s">%s</a><br />', esc_url( $author_url ), esc_html( $author_url_display ) ); 692 } else { 693 printf( '<a href="%s" rel="noreferrer">%s</a><br />', esc_url( $author_url ), esc_html( $author_url_display ) ); 694 } 689 695 } 690 696 691 697 if ( $this->user_can ) {