Make WordPress Core


Ignore:
Timestamp:
09/11/2015 06:20:56 AM (9 years ago)
Author:
wonderboymusic
Message:

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

See #33638.

File:
1 edited

Legend:

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

    r34041 r34042  
    194194        /* translators: 2: comment date, 3: comment time */
    195195        printf( __( '<a href="%1$s">%2$s at %3$s</a>' ),
    196             esc_url( get_comment_link( $comment->comment_ID ) ),
     196            esc_url( get_comment_link( $comment ) ),
    197197            /* translators: comment date format. See http://php.net/date */
    198198            get_comment_date( __( 'Y/m/d' ), $comment ),
Note: See TracChangeset for help on using the changeset viewer.