Make WordPress Core


Ignore:
Timestamp:
12/14/2009 10:21:58 AM (15 years ago)
Author:
azaozz
Message:

Add another arg to 'get_comment_time' filter, props miqrogroove, fixes #11421

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/comment-template.php

    r12362 r12396  
    600600function get_comment_time( $d = '', $gmt = false, $translate = true ) {
    601601    global $comment;
    602     $comment_date = $gmt? $comment->comment_date_gmt : $comment->comment_date;
     602    $comment_date = $gmt ? $comment->comment_date_gmt : $comment->comment_date;
    603603    if ( '' == $d )
    604604        $date = mysql2date(get_option('time_format'), $comment_date, $translate);
    605605    else
    606606        $date = mysql2date($d, $comment_date, $translate);
    607     return apply_filters('get_comment_time', $date, $d, $gmt);
     607    return apply_filters('get_comment_time', $date, $d, $gmt, $translate);
    608608}
    609609
Note: See TracChangeset for help on using the changeset viewer.