mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
After [33961], pass $comment to get_comment_author_link() where possible to avoid extra cache/db lookups.
See #33638. git-svn-id: https://develop.svn.wordpress.org/trunk@34039 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -180,8 +180,8 @@ if ( $comment->comment_approved != '0' ) { // if not unapproved
|
||||
|
||||
if ( $comment->comment_parent ) {
|
||||
$parent = get_comment( $comment->comment_parent );
|
||||
$parent_link = esc_url( get_comment_link( $comment->comment_parent ) );
|
||||
$name = get_comment_author( $parent->comment_ID );
|
||||
$parent_link = esc_url( get_comment_link( $parent ) );
|
||||
$name = get_comment_author( $parent );
|
||||
printf( ' | ' . __( 'In reply to <a href="%1$s">%2$s</a>.' ), $parent_link, $name );
|
||||
}
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user