Make WordPress Core


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

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

See #33638.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/comment-template.php

    r34008 r34039  
    16731673    else {
    16741674        $comment = get_comment($replytoid);
    1675         $author = ( $linktoparent ) ? '<a href="#comment-' . get_comment_ID() . '">' . get_comment_author() . '</a>' : get_comment_author();
     1675        $author = ( $linktoparent ) ? '<a href="#comment-' . get_comment_ID() . '">' . get_comment_author( $comment ) . '</a>' : get_comment_author( $comment );
    16761676        printf( $replytext, $author );
    16771677    }
Note: See TracChangeset for help on using the changeset viewer.