mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-22 14:35:07 +00:00
Twenty Twenty: Remove extra space from the comment link in TwentyTwenty_Walker_Comment
.
See #51533. Built from https://develop.svn.wordpress.org/trunk@49158 git-svn-id: http://core.svn.wordpress.org/trunk@48920 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
c7d43b7f57
commit
2d6ec60e04
@ -63,18 +63,24 @@ if ( ! class_exists( 'TwentyTwenty_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', 'twentytwenty' ), get_comment_date( '', $comment ), get_comment_time() );
|
||||
?>
|
||||
<time datetime="<?php comment_time( 'c' ); ?>" title="<?php echo esc_attr( $comment_timestamp ); ?>">
|
||||
<?php echo esc_html( $comment_timestamp ); ?>
|
||||
</time>
|
||||
</a>
|
||||
<?php
|
||||
/* translators: 1: Comment date, 2: Comment time. */
|
||||
$comment_timestamp = sprintf( __( '%1$s at %2$s', 'twentytwenty' ), 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 ),
|
||||
esc_html( $comment_timestamp )
|
||||
);
|
||||
|
||||
if ( get_edit_comment_link() ) {
|
||||
echo ' <span aria-hidden="true">•</span> <a class="comment-edit-link" href="' . esc_url( get_edit_comment_link() ) . '">' . __( 'Edit', 'twentytwenty' ) . '</a>';
|
||||
printf(
|
||||
' <span aria-hidden="true">•</span> <a class="comment-edit-link" href="%s">%s</a>',
|
||||
esc_url( get_edit_comment_link() ),
|
||||
__( 'Edit', 'twentytwenty' )
|
||||
);
|
||||
}
|
||||
?>
|
||||
</div><!-- .comment-metadata -->
|
||||
|
@ -13,7 +13,7 @@
|
||||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '5.6-alpha-49157';
|
||||
$wp_version = '5.6-alpha-49158';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
Loading…
x
Reference in New Issue
Block a user