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

See #33638.


git-svn-id: https://develop.svn.wordpress.org/trunk@34041 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Scott Taylor
2015-09-11 06:14:04 +00:00
parent 9ab431873c
commit 4a6a7edf55
3 changed files with 5 additions and 5 deletions

View File

@@ -195,8 +195,8 @@ if ( $comment->comment_approved != '0' ) { // if not unapproved
printf( __( '<a href="%1$s">%2$s at %3$s</a>' ),
esc_url( get_comment_link( $comment->comment_ID ) ),
/* translators: comment date format. See http://php.net/date */
get_comment_date( __( 'Y/m/d' ) ),
get_comment_date( get_option( 'time_format' ) )
get_comment_date( __( 'Y/m/d' ), $comment ),
get_comment_date( get_option( 'time_format' ), $comment )
);
?>
</td>