From 196fc7ab602a8b07a2e5c09fe700fb511dfd9e87 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Tue, 11 Feb 2020 01:15:31 +0000 Subject: [PATCH] Administration: Remove a blank space in the Recent Comments dashboard widget if avatars are disabled on Discussion Settings screen. Props Marius84, shital-patel, GaryJ, ianbelanger, sgastard, lgrev01, donmhico, garrett-eclipse, audrasjb, SergeyBiryukov. Fixes #42938. git-svn-id: https://develop.svn.wordpress.org/trunk@47255 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/css/dashboard.css | 2 +- src/wp-admin/includes/dashboard.php | 11 +++++++++-- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/src/wp-admin/css/dashboard.css b/src/wp-admin/css/dashboard.css index 02cbf11db7..a04fdd410f 100644 --- a/src/wp-admin/css/dashboard.css +++ b/src/wp-admin/css/dashboard.css @@ -821,7 +821,7 @@ body #dashboard-widgets .postbox form .submit { top: 12px; } -#activity-widget #the-comment-list .dashboard-comment-wrap { +#activity-widget #the-comment-list .dashboard-comment-wrap.has-avatar { padding-left: 63px; } diff --git a/src/wp-admin/includes/dashboard.php b/src/wp-admin/includes/dashboard.php index 7fbcd893cf..e20e56e5b7 100644 --- a/src/wp-admin/includes/dashboard.php +++ b/src/wp-admin/includes/dashboard.php @@ -775,11 +775,18 @@ function _wp_dashboard_recent_comments_row( &$comment, $show_date = true ) {
  • > - + comment_type || 'comment' == $comment->comment_type ) : ?> -
    +