mirror of
git://develop.git.wordpress.org/
synced 2025-02-13 03:04:42 +01:00
Twenty Nineteen: Remove extra space from the comment link in TwentyNineteen_Walker_Comment
.
Fixes #51533. git-svn-id: https://develop.svn.wordpress.org/trunk@49159 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
7bfe507dad
commit
fee906ad14
@ -73,18 +73,20 @@ class TwentyNineteen_Walker_Comment extends Walker_Comment {
|
||||
</div><!-- .comment-author -->
|
||||
|
||||
<div class="comment-metadata">
|
||||
<a href="<?php echo esc_url( get_comment_link( $comment, $args ) ); ?>">
|
||||
<?php
|
||||
/* translators: 1: Comment date, 2: Comment time. */
|
||||
$comment_timestamp = sprintf( __( '%1$s at %2$s', 'twentynineteen' ), get_comment_date( '', $comment ), get_comment_time() );
|
||||
?>
|
||||
<time datetime="<?php comment_time( 'c' ); ?>" title="<?php echo $comment_timestamp; ?>">
|
||||
<?php echo $comment_timestamp; ?>
|
||||
</time>
|
||||
</a>
|
||||
<?php
|
||||
$edit_comment_icon = twentynineteen_get_icon_svg( 'edit', 16 );
|
||||
edit_comment_link( __( 'Edit', 'twentynineteen' ), '<span class="edit-link-sep">—</span> <span class="edit-link">' . $edit_comment_icon, '</span>' );
|
||||
/* translators: 1: Comment date, 2: Comment time. */
|
||||
$comment_timestamp = sprintf( __( '%1$s at %2$s', 'twentynineteen' ), get_comment_date( '', $comment ), get_comment_time() );
|
||||
|
||||
printf(
|
||||
'<a href="%s"><time datetime="%s" title="%s">%s</time></a>',
|
||||
esc_url( get_comment_link( $comment, $args ) ),
|
||||
get_comment_time( 'c' ),
|
||||
esc_attr( $comment_timestamp ),
|
||||
$comment_timestamp
|
||||
);
|
||||
|
||||
$edit_comment_icon = twentynineteen_get_icon_svg( 'edit', 16 );
|
||||
edit_comment_link( __( 'Edit', 'twentynineteen' ), ' <span class="edit-link-sep">—</span> <span class="edit-link">' . $edit_comment_icon, '</span>' );
|
||||
?>
|
||||
</div><!-- .comment-metadata -->
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user