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

git-svn-id: http://svn.automattic.com/wordpress/trunk@4498 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2006-11-20 01:46:20 +00:00
parent 4780071918
commit 9952fe0bc4

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 = '' ) {