From ff567294f6c38396d9dc522ee8df9be89ed94dd1 Mon Sep 17 00:00:00 2001 From: "Dominik Schilling (ocean90)" Date: Mon, 3 Mar 2014 20:13:29 +0000 Subject: [PATCH] "At a Glance" widget: Move `get_avatar()` line out of if-block. This allows you to show avatars for custom comment types via the `get_avatar_comment_types` filter. props zodiac1978. fixes #26944. git-svn-id: https://develop.svn.wordpress.org/trunk@27384 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/includes/dashboard.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/wp-admin/includes/dashboard.php b/src/wp-admin/includes/dashboard.php index 0f62ebc7df..aced54475e 100644 --- a/src/wp-admin/includes/dashboard.php +++ b/src/wp-admin/includes/dashboard.php @@ -482,10 +482,11 @@ function _wp_dashboard_recent_comments_row( &$comment, $show_date = true ) { ?>
comment_ID) ) ); ?>> - comment_type || 'comment' == $comment->comment_type ) : ?> + comment_type || 'comment' == $comment->comment_type ) : ?> +