Pass format string and gmtbool as args to data and time filters. Props sdiz. fixes #2754

git-svn-id: https://develop.svn.wordpress.org/trunk@4498 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2006-11-20 01:46:20 +00:00
parent cb11b2ef85
commit 8d2a32913e

View File

@ -93,7 +93,7 @@ function get_comment_date( $d = '' ) {
$date = mysql2date( get_option('date_format'), $comment->comment_date);
else
$date = mysql2date($d, $comment->comment_date);
return apply_filters('get_comment_date', $date);
return apply_filters('get_comment_date', $date, $d);
}
function comment_date( $d = '' ) {
@ -191,7 +191,7 @@ function get_comment_time( $d = '', $gmt = false ) {
$date = mysql2date(get_option('time_format'), $comment_date);
else
$date = mysql2date($d, $comment_date);
return apply_filters('get_comment_time', $date);
return apply_filters('get_comment_time', $date, $d, $gmt);
}
function comment_time( $d = '' ) {