Make WordPress Core


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

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

See #33638.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/theme-compat/comments-popup.php

    r34039 r34041  
    5353    <li id="comment-<?php comment_ID() ?>">
    5454    <?php comment_text() ?>
    55     <p><cite><?php comment_type(); ?> <?php printf(__('by %1$s &#8212; %2$s @ <a href="#comment-%3$s">%4$s</a>'), get_comment_author_link( $comment ), get_comment_date(), get_comment_ID(), get_comment_time()); ?></cite></p>
     55    <p><cite><?php comment_type(); ?> <?php printf(__('by %1$s &#8212; %2$s @ <a href="#comment-%3$s">%4$s</a>'), get_comment_author_link( $comment ), get_comment_date( '', $comment ), get_comment_ID(), get_comment_time()); ?></cite></p>
    5656    </li>
    5757
Note: See TracChangeset for help on using the changeset viewer.