From fc4c73feab463a9f9812cf81ec6eb4c3a11daac4 Mon Sep 17 00:00:00 2001 From: Matt Thomas Date: Thu, 16 Jan 2014 20:33:45 +0000 Subject: [PATCH] The comment screen hides the author column at narrow screen sizes; this adds back the author info above the comment content. Fixes #26618, props SergeyBiryukov, nacin. git-svn-id: https://develop.svn.wordpress.org/trunk@26961 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/css/wp-admin.css | 16 +++++++++++++++- .../includes/class-wp-comments-list-table.php | 4 ++++ 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/src/wp-admin/css/wp-admin.css b/src/wp-admin/css/wp-admin.css index 82281361d5..87ba8e5e40 100644 --- a/src/wp-admin/css/wp-admin.css +++ b/src/wp-admin/css/wp-admin.css @@ -3396,6 +3396,10 @@ table.fixed { width: 10%; } +.fixed .column-comment .comment-author { + display: none; +} + .fixed .column-response, .fixed .column-categories, .fixed .column-tags, @@ -8601,7 +8605,13 @@ p.pagenav { font-weight: 600; } -.column-author img, .column-username img { +.column-comment .comment-author { + margin-bottom: 0.6em; +} + +.column-author img, +.column-username img, +.column-comment .comment-author img { float: left; margin-right: 10px; margin-top: 1px; @@ -12262,6 +12272,10 @@ li#wp-admin-bar-menu-toggle { display: none; } + .fixed .column-comment .comment-author { + display: block; + } + /* Posts */ .column-title { width: 85%; 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 711d742efc..3fa1d7c2b7 100644 --- a/src/wp-admin/includes/class-wp-comments-list-table.php +++ b/src/wp-admin/includes/class-wp-comments-list-table.php @@ -390,6 +390,10 @@ class WP_Comments_List_Table extends WP_List_Table { $delete_url = esc_url( $url . "&action=deletecomment&$del_nonce" ); } + echo '
'; + $this->column_author( $comment ); + echo '
'; + echo '
'; /* translators: 2: comment date, 3: comment time */ printf( __( 'Submitted on %2$s at %3$s' ), $comment_url,