diff --git a/src/wp-admin/includes/class-wp-comments-list-table.php b/src/wp-admin/includes/class-wp-comments-list-table.php index f12565a95f..a5f96939d5 100644 --- a/src/wp-admin/includes/class-wp-comments-list-table.php +++ b/src/wp-admin/includes/class-wp-comments-list-table.php @@ -716,15 +716,23 @@ class WP_Comments_List_Table extends WP_List_Table { * @param WP_Comment $comment The comment object. */ public function column_date( $comment ) { - echo '
'; - echo ''; /* translators: 1: comment date, 2: comment time */ - printf( __( '%1$s at %2$s' ), + $submitted = sprintf( __( '%1$s at %2$s' ), /* translators: comment date format. See http://php.net/date */ get_comment_date( __( 'Y/m/d' ), $comment ), get_comment_date( __( 'g:i a' ), $comment ) ); - echo ''; + + echo '
'; + if ( 'approved' === wp_get_comment_status( $comment ) && ! empty ( $comment->comment_post_ID ) ) { + printf( + '%s', + esc_url( get_comment_link( $comment ) ), + $submitted + ); + } else { + echo $submitted; + } echo '
'; }