mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-12 04:40:26 +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:
@@ -1672,7 +1672,7 @@ function comment_form_title( $noreplytext = false, $replytext = false, $linktopa
|
||||
echo $noreplytext;
|
||||
else {
|
||||
$comment = get_comment($replytoid);
|
||||
$author = ( $linktoparent ) ? '<a href="#comment-' . get_comment_ID() . '">' . get_comment_author() . '</a>' : get_comment_author();
|
||||
$author = ( $linktoparent ) ? '<a href="#comment-' . get_comment_ID() . '">' . get_comment_author( $comment ) . '</a>' : get_comment_author( $comment );
|
||||
printf( $replytext, $author );
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user