From 00f224624e120d5c06faf0908ceedf906a2efc4f Mon Sep 17 00:00:00 2001 From: Dominik Schilling Date: Mon, 3 Mar 2014 20:14:14 +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. Built from https://develop.svn.wordpress.org/trunk@27384 git-svn-id: http://core.svn.wordpress.org/trunk@27232 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/dashboard.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wp-admin/includes/dashboard.php b/wp-admin/includes/dashboard.php index 0f62ebc7df..aced54475e 100644 --- a/wp-admin/includes/dashboard.php +++ b/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 ) : ?> +