Changeset 55287
- Timestamp:
- 02/07/2023 06:24:02 PM (22 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/comment-template.php
r55284 r55287 548 548 * 549 549 * @param string $format Optional. PHP date format. Defaults to the 'date_format' option. 550 * @param int|WP_Comment $comment_ID WP_Comment or ID of the comment for which to get the date.550 * @param int|WP_Comment $comment_ID Optional. WP_Comment or ID of the comment for which to get the date. 551 551 * Default current comment. 552 552 * @return string The comment's date. … … 1032 1032 * 1033 1033 * @since 1.5.0 1034 * @since 6.2.0 Added the ability for `$comment_ID` to also accept a WP_Comment object.1034 * @since 6.2.0 Added the `$comment_ID` parameter. 1035 1035 * 1036 1036 * @param string $format Optional. PHP date format. Defaults to the 'time_format' option. … … 1038 1038 * @param bool $translate Optional. Whether to translate the time (for use in feeds). 1039 1039 * Default true. 1040 * @param int|WP_Comment $comment_ID Optional. WP_Comment or ID of the comment for which to get the date.1041 * Default is 0, or the globalcomment.1040 * @param int|WP_Comment $comment_ID Optional. WP_Comment or ID of the comment for which to get the time. 1041 * Default current comment. 1042 1042 * @return string The formatted time. 1043 1043 */ … … 1073 1073 * 1074 1074 * @since 0.71 1075 * 1076 * @param string $format Optional. PHP time format. Defaults to the 'time_format' option. 1077 */ 1078 function comment_time( $format = '' ) { 1079 echo get_comment_time( $format ); 1075 * @since 6.2.0 Added the `$comment_ID` parameter. 1076 * 1077 * @param string $format Optional. PHP time format. Defaults to the 'time_format' option. 1078 * @param int|WP_Comment $comment_ID Optional. WP_Comment or ID of the comment for which to get the time. 1079 * Default current comment. 1080 */ 1081 function comment_time( $format = '', $comment_ID = 0 ) { 1082 echo get_comment_time( $format, $comment_ID ); 1080 1083 } 1081 1084
Note: See TracChangeset
for help on using the changeset viewer.