Make WordPress Core


Ignore:
Timestamp:
09/11/2015 06:04:22 AM (9 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-admin/edit-form-comment.php

    r34015 r34039  
    122122    if ( $parent ) :
    123123        $parent_link = esc_url( get_comment_link( $comment->comment_parent ) );
    124         $name        = get_comment_author( $parent->comment_ID );
     124        $name        = get_comment_author( $parent );
    125125    ?>
    126126    <div class="misc-pub-section misc-pub-reply-to">
Note: See TracChangeset for help on using the changeset viewer.