mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-03 15:08:10 +01:00
Pass the comment object to the get_comment_date and get_comment_time.
props SergeyBiryukov. fixes #19849. Built from https://develop.svn.wordpress.org/trunk@27283 git-svn-id: http://core.svn.wordpress.org/trunk@27139 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
6b4cf7e36e
commit
1699153d26
@ -472,10 +472,11 @@ function get_comment_date( $d = '', $comment_ID = 0 ) {
|
||||
*
|
||||
* @since 1.5.0
|
||||
*
|
||||
* @param string|int $date Formatted date string or Unix timestamp.
|
||||
* @param string $d The format of the date.
|
||||
* @param string|int $date Formatted date string or Unix timestamp.
|
||||
* @param string $d The format of the date.
|
||||
* @param object $comment The comment object.
|
||||
*/
|
||||
return apply_filters( 'get_comment_date', $date, $d );
|
||||
return apply_filters( 'get_comment_date', $date, $d, $comment );
|
||||
}
|
||||
|
||||
/**
|
||||
@ -820,8 +821,9 @@ function get_comment_time( $d = '', $gmt = false, $translate = true ) {
|
||||
* @param string $d Date format.
|
||||
* @param bool $gmt Whether the GMT date is in use.
|
||||
* @param bool $translate Whether the time is translated.
|
||||
* @param object $comment The comment object.
|
||||
*/
|
||||
return apply_filters( 'get_comment_time', $date, $d, $gmt, $translate );
|
||||
return apply_filters( 'get_comment_time', $date, $d, $gmt, $translate, $comment );
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user