mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-22 17:18:32 +01:00
Add another arg to 'get_comment_time' filter, props miqrogroove, fixes #11421
git-svn-id: http://svn.automattic.com/wordpress/trunk@12396 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
c1e0bd72af
commit
72990cd094
@ -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