Ticket #42938: 42938.6.diff
File 42938.6.diff, 1.7 KB (added by , 5 years ago) |
---|
-
src/wp-admin/css/dashboard.css
999 999 word-wrap: break-word; 1000 1000 } 1001 1001 1002 .dashboard-comment-wrap-no-avatar { 1003 word-wrap: break-word; 1004 } 1005 1002 1006 /* Browser Nag */ 1003 1007 #dashboard_browser_nag a.update-browser-link { 1004 1008 font-size: 1.2em; -
src/wp-admin/includes/dashboard.php
761 761 762 762 <li id="comment-<?php echo $comment->comment_ID; ?>" <?php comment_class( array( 'comment-item', wp_get_comment_status( $comment ) ), $comment ); ?>> 763 763 764 <?php echo get_avatar( $comment, 50, 'mystery' ); ?> 764 <?php 765 $show_avatars = get_option( 'show_avatars' ); 766 $show_avatars_class = 'dashboard-comment-wrap-no-avatar'; 765 767 768 if ( 1 == $show_avatars ) { 769 echo get_avatar( $comment, 50, 'mystery' ); 770 $show_avatars_class = 'dashboard-comment-wrap'; 771 } 772 ?> 773 766 774 <?php if ( ! $comment->comment_type || 'comment' == $comment->comment_type ) : ?> 767 775 768 <div class="dashboard-comment-wraphas-row-actions">769 <p class="comment-meta">776 <div class="<?php echo $show_avatars_class; ?> has-row-actions"> 777 <p class="comment-meta"> 770 778 <?php 771 779 // Comments might not have a post they relate to, e.g. programmatically created ones. 772 780 if ( $comment_post_link ) { … … 786 794 ); 787 795 } 788 796 ?> 789 </p>797 </p> 790 798 791 799 <?php 792 800 else : 793 801 switch ( $comment->comment_type ) { 794 802 case 'pingback':