Make WordPress Core


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

    r34019 r34039  
    181181                if ( $comment->comment_parent ) {
    182182                        $parent      = get_comment( $comment->comment_parent );
    183                         $parent_link = esc_url( get_comment_link( $comment->comment_parent ) );
    184                         $name        = get_comment_author( $parent->comment_ID );
     183                        $parent_link = esc_url( get_comment_link( $parent ) );
     184                        $name        = get_comment_author( $parent );
    185185                        printf( ' | ' . __( 'In reply to <a href="%1$s">%2$s</a>.' ), $parent_link, $name );
    186186                }
Note: See TracChangeset for help on using the changeset viewer.