"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
This commit is contained in:
parent
abe142d2c6
commit
00f224624e
|
@ -482,10 +482,11 @@ function _wp_dashboard_recent_comments_row( &$comment, $show_date = true ) {
|
|||
?>
|
||||
|
||||
<div id="comment-<?php echo $comment->comment_ID; ?>" <?php comment_class( array( 'comment-item', wp_get_comment_status($comment->comment_ID) ) ); ?>>
|
||||
<?php if ( !$comment->comment_type || 'comment' == $comment->comment_type ) : ?>
|
||||
|
||||
<?php echo get_avatar( $comment, 50, 'mystery' ); ?>
|
||||
|
||||
<?php if ( !$comment->comment_type || 'comment' == $comment->comment_type ) : ?>
|
||||
|
||||
<div class="dashboard-comment-wrap">
|
||||
<h4 class="comment-meta">
|
||||
<?php printf( /* translators: 1: comment author, 2: post link, 3: notification if the comment is pending */__( 'From %1$s on %2$s%3$s' ),
|
||||
|
|
Loading…
Reference in New Issue