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/link-template.php

    r33968 r34042  
    12861286 * @since 2.3.0
    12871287 *
    1288  * @param int $comment_id Optional. Comment ID.
     1288 * @param int|WP_Comment $comment_id Optional. Comment ID or WP_Comment object.
    12891289 * @return string|void The edit comment link URL for the given comment.
    12901290 */
     
    13271327    }
    13281328
    1329     $link = '<a class="comment-edit-link" href="' . get_edit_comment_link( $comment->comment_ID ) . '">' . $text . '</a>';
     1329    $link = '<a class="comment-edit-link" href="' . get_edit_comment_link( $comment ) . '">' . $text . '</a>';
    13301330
    13311331    /**
Note: See TracChangeset for help on using the changeset viewer.