Add another arg to 'get_comment_time' filter, props miqrogroove, fixes #11421
git-svn-id: https://develop.svn.wordpress.org/trunk@12396 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
3447fc5210
commit
5dd7bb86d3
@ -599,12 +599,12 @@ function comment_text() {
|
||||
*/
|
||||
function get_comment_time( $d = '', $gmt = false, $translate = true ) {
|
||||
global $comment;
|
||||
$comment_date = $gmt? $comment->comment_date_gmt : $comment->comment_date;
|
||||
$comment_date = $gmt ? $comment->comment_date_gmt : $comment->comment_date;
|
||||
if ( '' == $d )
|
||||
$date = mysql2date(get_option('time_format'), $comment_date, $translate);
|
||||
else
|
||||
$date = mysql2date($d, $comment_date, $translate);
|
||||
return apply_filters('get_comment_time', $date, $d, $gmt);
|
||||
return apply_filters('get_comment_time', $date, $d, $gmt, $translate);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user