Changeset 49159
- Timestamp:
- 10/15/2020 03:22:42 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-content/themes/twentynineteen/classes/class-twentynineteen-walker-comment.php
r48825 r49159 74 74 75 75 <div class="comment-metadata"> 76 <a href="<?php echo esc_url( get_comment_link( $comment, $args ) ); ?>">77 <?php78 /* translators: 1: Comment date, 2: Comment time. */79 $comment_timestamp = sprintf( __( '%1$s at %2$s', 'twentynineteen' ), get_comment_date( '', $comment ), get_comment_time() );80 ?>81 <time datetime="<?php comment_time( 'c' ); ?>" title="<?php echo $comment_timestamp; ?>">82 <?php echo $comment_timestamp; ?>83 </time>84 </a>85 76 <?php 86 $edit_comment_icon = twentynineteen_get_icon_svg( 'edit', 16 ); 87 edit_comment_link( __( 'Edit', 'twentynineteen' ), '<span class="edit-link-sep">—</span> <span class="edit-link">' . $edit_comment_icon, '</span>' ); 77 /* translators: 1: Comment date, 2: Comment time. */ 78 $comment_timestamp = sprintf( __( '%1$s at %2$s', 'twentynineteen' ), get_comment_date( '', $comment ), get_comment_time() ); 79 80 printf( 81 '<a href="%s"><time datetime="%s" title="%s">%s</time></a>', 82 esc_url( get_comment_link( $comment, $args ) ), 83 get_comment_time( 'c' ), 84 esc_attr( $comment_timestamp ), 85 $comment_timestamp 86 ); 87 88 $edit_comment_icon = twentynineteen_get_icon_svg( 'edit', 16 ); 89 edit_comment_link( __( 'Edit', 'twentynineteen' ), ' <span class="edit-link-sep">—</span> <span class="edit-link">' . $edit_comment_icon, '</span>' ); 88 90 ?> 89 91 </div><!-- .comment-metadata -->
Note: See TracChangeset
for help on using the changeset viewer.