Make WordPress Core


Ignore:
Timestamp:
03/03/2014 08:13:29 PM (11 years ago)
Author:
ocean90
Message:

"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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/dashboard.php

    r26999 r27384  
    483483
    484484        <div id="comment-<?php echo $comment->comment_ID; ?>" <?php comment_class( array( 'comment-item', wp_get_comment_status($comment->comment_ID) ) ); ?>>
     485
     486            <?php echo get_avatar( $comment, 50, 'mystery' ); ?>
     487
    485488            <?php if ( !$comment->comment_type || 'comment' == $comment->comment_type ) : ?>
    486 
    487             <?php echo get_avatar( $comment, 50, 'mystery' ); ?>
    488489
    489490            <div class="dashboard-comment-wrap">
Note: See TracChangeset for help on using the changeset viewer.