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/edit-form-comment.php

    r34039 r34042  
    7070<div id="minor-publishing-actions">
    7171<div id="preview-action">
    72 <a class="preview button" href="<?php echo get_comment_link(); ?>" target="_blank"><?php _e('View Comment'); ?></a>
     72<a class="preview button" href="<?php echo get_comment_link( $comment ); ?>" target="_blank"><?php _e('View Comment'); ?></a>
    7373</div>
    7474<div class="clear"></div>
     
    121121    $parent      = get_comment( $comment->comment_parent );
    122122    if ( $parent ) :
    123         $parent_link = esc_url( get_comment_link( $comment->comment_parent ) );
     123        $parent_link = esc_url( get_comment_link( $comment ) );
    124124        $name        = get_comment_author( $parent );
    125125    ?>
Note: See TracChangeset for help on using the changeset viewer.