Make WordPress Core


Ignore:
Timestamp:
09/11/2015 06:11:35 AM (10 years ago)
Author:
wonderboymusic
Message:

After [33961], pass $comment to comment_class() where possible to avoid extra cache/db lookups.

See #33638.

File:
1 edited

Legend:

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

    r34038 r34040  
    630630?>
    631631
    632         <div id="comment-<?php echo $comment->comment_ID; ?>" <?php comment_class( array( 'comment-item', wp_get_comment_status( $comment ) ) ); ?>>
     632        <div id="comment-<?php echo $comment->comment_ID; ?>" <?php comment_class( array( 'comment-item', wp_get_comment_status( $comment ) ), $comment ); ?>>
    633633
    634634            <?php echo get_avatar( $comment, 50, 'mystery' ); ?>
Note: See TracChangeset for help on using the changeset viewer.