Skip to content

Commit dd47444

Browse files
authored
Update parameter types in get_comment_time docblock
1 parent 05d09e1 commit dd47444

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/wp-includes/comment-template.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1167,11 +1167,11 @@ function comment_text( $comment_id = 0, $args = array() ) {
11671167
* @since 1.5.0
11681168
* @since 6.2.0 Added the `$comment_id` parameter.
11691169
*
1170-
* @param string $format Optional. PHP date format. Defaults to the 'time_format' option.
1171-
* @param bool $gmt Optional. Whether to use the GMT date. Default false.
1172-
* @param bool $translate Optional. Whether to translate the time (for use in feeds).
1170+
* @param string $format Optional. PHP date format. Defaults to the 'time_format' option.
1171+
* @param bool $gmt Optional. Whether to use the GMT date. Default false.
1172+
* @param bool $translate Optional. Whether to translate the time (for use in feeds).
11731173
* Default true.
1174-
* @param int|WP_Comment $comment_id Optional. WP_Comment or ID of the comment for which to get the time.
1174+
* @param int|null|WP_Comment $comment_id Optional. WP_Comment or ID of the comment for which to get the time.
11751175
* Default current comment.
11761176
* @return string The formatted time.
11771177
*/

0 commit comments

Comments
 (0)