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

See #33638.

Built from https://develop.svn.wordpress.org/trunk@34042


git-svn-id: http://core.svn.wordpress.org/trunk@34010 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Scott Taylor
2015-09-11 06:21:25 +00:00
parent c3f642bea9
commit db4f22bfb5
8 changed files with 12 additions and 12 deletions

View File

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