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-includes/pluggable.php

    r34038 r34042  
    14731473    }
    14741474    $notify_message .= get_permalink($comment->comment_post_ID) . "#comments\r\n\r\n";
    1475     $notify_message .= sprintf( __('Permalink: %s'), get_comment_link( $comment_id ) ) . "\r\n";
     1475    $notify_message .= sprintf( __('Permalink: %s'), get_comment_link( $comment ) ) . "\r\n";
    14761476
    14771477    if ( user_can( $post->post_author, 'edit_comment', $comment_id ) ) {
Note: See TracChangeset for help on using the changeset viewer.