WordPress/wp-includes
Sergey Biryukov 24773a3c7c Comments: Add missing arguments for get_comment_time() in comment_time().
In a recent change, `comment_time()` was updated to accept a `$comment_id` parameter for consistency with `comment_date()`, following a similar change for `get_comment_time()`.

However, the new parameter was not correctly passed to `get_comment_time()` inside the function. It should be passed as the fourth parameter after `$format`, `$gmt` and `$translate`, not the second.

This commit adds the missing arguments and a few unit tests to confirm the correct behavior.

Follow-up to [55284], [55287], [55308].

Props costdev, tmatsuur, ugyensupport, johnbillion.
Merges [55632] to the 6.2 branch.
Fixes #58064.
Built from https://develop.svn.wordpress.org/branches/6.2@55634


git-svn-id: http://core.svn.wordpress.org/branches/6.2@55146 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2023-04-08 09:09:20 +00:00
..
2023-03-28 14:34:27 +00:00