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/class-walker-comment.php

    r34040 r34041  
    272272            <?php
    273273                /* translators: 1: comment date, 2: comment time */
    274                 printf( __( '%1$s at %2$s' ), get_comment_date(),  get_comment_time() ); ?></a><?php edit_comment_link( __( '(Edit)' ), '&nbsp;&nbsp;', '' );
     274                printf( __( '%1$s at %2$s' ), get_comment_date( '', $comment ),  get_comment_time() ); ?></a><?php edit_comment_link( __( '(Edit)' ), '&nbsp;&nbsp;', '' );
    275275            ?>
    276276        </div>
     
    322322                                <?php
    323323                                    /* translators: 1: comment date, 2: comment time */
    324                                     printf( __( '%1$s at %2$s' ), get_comment_date(), get_comment_time() );
     324                                    printf( __( '%1$s at %2$s' ), get_comment_date( '', $comment ), get_comment_time() );
    325325                                ?>
    326326                            </time>
Note: See TracChangeset for help on using the changeset viewer.