diff --git a/src/wp-admin/css/list-tables.css b/src/wp-admin/css/list-tables.css index 70fad7ff2e..172b9b3af3 100644 --- a/src/wp-admin/css/list-tables.css +++ b/src/wp-admin/css/list-tables.css @@ -386,6 +386,10 @@ table.media .column-title .filename { width: 20%; } +#comments-form .fixed .column-date { + width: 14%; +} + #commentsdiv.postbox .inside { margin: 0; padding: 0; diff --git a/src/wp-admin/edit-comments.php b/src/wp-admin/edit-comments.php index 329244d4a6..e2a5b81716 100644 --- a/src/wp-admin/edit-comments.php +++ b/src/wp-admin/edit-comments.php @@ -151,8 +151,9 @@ get_current_screen()->add_help_tab( array( 'content' => '

' . __( 'A red bar on the left means the comment is waiting for you to moderate it.' ) . '

' . '

' . __( 'In the Author column, in addition to the author’s name, email address, and blog URL, the commenter’s IP address is shown. Clicking on this link will show you all the comments made from this IP address.' ) . '

' . - '

' . __( 'In the Comment column, above each comment it says “Submitted on,” followed by the date and time the comment was left on your site. Clicking on the date/time link will take you to that comment on your live site. Hovering over any comment gives you options to approve, reply (and approve), quick edit, edit, spam mark, or trash that comment.' ) . '

' . + '

' . __( 'In the Comment column, hovering over any comment gives you options to approve, reply (and approve), quick edit, edit, spam mark, or trash that comment.' ) . '

' . '

' . __( 'In the In Response To column, there are three elements. The text is the name of the post that inspired the comment, and links to the post editor for that entry. The View Post link leads to that post on your live site. The small bubble with the number in it shows the number of approved comments that post has received. If there are pending comments, a red notification circle with the number of pending comments is displayed. Clicking the notification circle will filter the comments screen to show only pending comments on that post.' ) . '

' . + '

' . __( 'In the Submitted On column, the date and time the comment was left on your site appears. Clicking on the date/time link will take you to that comment on your live site.' ) . '

' . '

' . __( 'Many people take advantage of keyboard shortcuts to moderate their comments more quickly. Use the link to the side to learn more.' ) . '

' ) ); 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 8204f97153..004329637b 100644 --- a/src/wp-admin/includes/class-wp-comments-list-table.php +++ b/src/wp-admin/includes/class-wp-comments-list-table.php @@ -399,6 +399,8 @@ class WP_Comments_List_Table extends WP_List_Table { $columns['response'] = __( 'In Response To' ); } + $columns['date'] = _x( 'Submitted On', 'column name' ); + return $columns; } @@ -409,7 +411,8 @@ class WP_Comments_List_Table extends WP_List_Table { protected function get_sortable_columns() { return array( 'author' => 'comment_author', - 'response' => 'comment_post_ID' + 'response' => 'comment_post_ID', + 'date' => 'comment_date' ); } @@ -621,20 +624,10 @@ class WP_Comments_List_Table extends WP_List_Table { * @param object $comment */ public function column_comment( $comment ) { - $comment_url = esc_url( get_comment_link( $comment ) ); - echo '
'; $this->column_author( $comment ); echo '
'; - echo '
'; - /* translators: 2: comment date, 3: comment time */ - printf( __( 'Submitted on %2$s at %3$s' ), $comment_url, - /* translators: comment date format. See http://php.net/date */ - get_comment_date( __( 'Y/m/d' ), $comment ), - get_comment_date( get_option( 'time_format' ), $comment ) - ); - if ( $comment->comment_parent ) { $parent = get_comment( $comment->comment_parent ); if ( $parent ) { @@ -642,13 +635,12 @@ class WP_Comments_List_Table extends WP_List_Table { $name = get_comment_author( $parent ); printf( /* translators: %s: comment link */ - ' | ' . __( 'In reply to %s.' ), + __( 'In reply to %s.' ), '' . $name . '' ); } } - echo '
'; comment_text( $comment ); if ( $this->user_can ) { ?>