Make WordPress Core

Ticket #26944: 26944.diff

File 26944.diff, 852 bytes (added by zodiac1978, 13 years ago)

Moved get_avatar line from dashboard widget out of if-block

  • src/wp-admin/includes/dashboard.php

     
    482482?>
    483483
    484484                <div id="comment-<?php echo $comment->comment_ID; ?>" <?php comment_class( array( 'comment-item', wp_get_comment_status($comment->comment_ID) ) ); ?>>
    485                         <?php if ( !$comment->comment_type || 'comment' == $comment->comment_type ) : ?>
    486485
    487486                        <?php echo get_avatar( $comment, 50, 'mystery' ); ?>
    488487
     488                        <?php if ( !$comment->comment_type || 'comment' == $comment->comment_type ) : ?>
     489
    489490                        <div class="dashboard-comment-wrap">
    490491                        <h4 class="comment-meta">
    491492                                <?php printf( /* translators: 1: comment author, 2: post link, 3: notification if the comment is pending */__( 'From %1$s on %2$s%3$s' ),