diff --git a/src/wp-admin/css/dashboard.css b/src/wp-admin/css/dashboard.css
index eac01008e8..92a8c01f50 100644
a
|
b
|
a.rsswidget { |
1010 | 1010 | word-wrap: break-word; |
1011 | 1011 | } |
1012 | 1012 | |
| 1013 | .dashboard-comment-wrap-no-avatar { |
| 1014 | word-wrap: break-word; |
| 1015 | } |
| 1016 | |
1013 | 1017 | /* Browser Nag */ |
1014 | 1018 | #dashboard_browser_nag a.update-browser-link { |
1015 | 1019 | font-size: 1.2em; |
diff --git a/src/wp-admin/includes/dashboard.php b/src/wp-admin/includes/dashboard.php
index 9533c24dec..944d7555f1 100644
a
|
b
|
function _wp_dashboard_recent_comments_row( &$comment, $show_date = true ) { |
775 | 775 | |
776 | 776 | <li id="comment-<?php echo $comment->comment_ID; ?>" <?php comment_class( array( 'comment-item', wp_get_comment_status( $comment ) ), $comment ); ?>> |
777 | 777 | |
778 | | <?php echo get_avatar( $comment, 50, 'mystery' ); ?> |
| 778 | <?php |
| 779 | $show_avatars = get_option( 'show_avatars' ); |
| 780 | $show_avatars_class = 'dashboard-comment-wrap-no-avatar'; |
| 781 | |
| 782 | if ( 1 == $show_avatars ) { |
| 783 | echo get_avatar( $comment, 50, 'mystery' ); |
| 784 | $show_avatars_class = 'dashboard-comment-wrap'; |
| 785 | } |
| 786 | ?> |
779 | 787 | |
780 | 788 | <?php if ( ! $comment->comment_type || 'comment' == $comment->comment_type ) : ?> |
781 | 789 | |
782 | | <div class="dashboard-comment-wrap has-row-actions"> |
783 | | <p class="comment-meta"> |
| 790 | <div class="<?php echo $show_avatars_class; ?> has-row-actions"> |
| 791 | <p class="comment-meta"> |
784 | 792 | <?php |
785 | 793 | // Comments might not have a post they relate to, e.g. programmatically created ones. |
786 | 794 | if ( $comment_post_link ) { |
… |
… |
function _wp_dashboard_recent_comments_row( &$comment, $show_date = true ) { |
800 | 808 | ); |
801 | 809 | } |
802 | 810 | ?> |
803 | | </p> |
| 811 | </p> |
804 | 812 | |
805 | | <?php |
| 813 | <?php |
806 | 814 | else : |
807 | 815 | switch ( $comment->comment_type ) { |
808 | 816 | case 'pingback': |