After [33961], pass $comment to comment_class() where possible to avoid extra cache/db lookups.
See #33638. Built from https://develop.svn.wordpress.org/trunk@34040 git-svn-id: http://core.svn.wordpress.org/trunk@34008 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -629,7 +629,7 @@ 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 ) ) ); ?>>
|
||||
<div id="comment-<?php echo $comment->comment_ID; ?>" <?php comment_class( array( 'comment-item', wp_get_comment_status( $comment ) ), $comment ); ?>>
|
||||
|
||||
<?php echo get_avatar( $comment, 50, 'mystery' ); ?>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user