mirror of
https://github.com/WordPress/WordPress.git
synced 2024-09-27 14:53:08 +02:00
Comments: Remove extra space from the comment link in Walker_Comment
.
Props poena, mukesh27, SergeyBiryukov. See #51533. Built from https://develop.svn.wordpress.org/trunk@49157 git-svn-id: http://core.svn.wordpress.org/trunk@48919 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
a91cc19c1c
commit
c7d43b7f57
@ -333,15 +333,21 @@ class Walker_Comment extends Walker {
|
|||||||
<br />
|
<br />
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|
||||||
<div class="comment-meta commentmetadata"><a href="<?php echo esc_url( get_comment_link( $comment, $args ) ); ?>">
|
<div class="comment-meta commentmetadata">
|
||||||
<?php
|
<?php
|
||||||
/* translators: 1: Comment date, 2: Comment time. */
|
printf(
|
||||||
printf( __( '%1$s at %2$s' ), get_comment_date( '', $comment ), get_comment_time() );
|
'<a href="%s">%s</a>',
|
||||||
|
esc_url( get_comment_link( $comment, $args ) ),
|
||||||
|
sprintf(
|
||||||
|
/* translators: 1: Comment date, 2: Comment time. */
|
||||||
|
__( '%1$s at %2$s' ),
|
||||||
|
get_comment_date( '', $comment ),
|
||||||
|
get_comment_time()
|
||||||
|
)
|
||||||
|
);
|
||||||
?>
|
?>
|
||||||
</a>
|
|
||||||
<?php
|
<?php edit_comment_link( __( '(Edit)' ), ' ', '' ); ?>
|
||||||
edit_comment_link( __( '(Edit)' ), ' ', '' );
|
|
||||||
?>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
@ -427,14 +433,20 @@ class Walker_Comment extends Walker {
|
|||||||
</div><!-- .comment-author -->
|
</div><!-- .comment-author -->
|
||||||
|
|
||||||
<div class="comment-metadata">
|
<div class="comment-metadata">
|
||||||
<a href="<?php echo esc_url( get_comment_link( $comment, $args ) ); ?>">
|
<?php
|
||||||
<time datetime="<?php comment_time( 'c' ); ?>">
|
printf(
|
||||||
<?php
|
'<a href="%s"><time datetime="%s">%s</time></a>',
|
||||||
/* translators: 1: Comment date, 2: Comment time. */
|
esc_url( get_comment_link( $comment, $args ) ),
|
||||||
printf( __( '%1$s at %2$s' ), get_comment_date( '', $comment ), get_comment_time() );
|
get_comment_time( 'c' ),
|
||||||
?>
|
sprintf(
|
||||||
</time>
|
/* translators: 1: Comment date, 2: Comment time. */
|
||||||
</a>
|
__( '%1$s at %2$s' ),
|
||||||
|
get_comment_date( '', $comment ),
|
||||||
|
get_comment_time()
|
||||||
|
)
|
||||||
|
);
|
||||||
|
?>
|
||||||
|
|
||||||
<?php edit_comment_link( __( 'Edit' ), '<span class="edit-link">', '</span>' ); ?>
|
<?php edit_comment_link( __( 'Edit' ), '<span class="edit-link">', '</span>' ); ?>
|
||||||
</div><!-- .comment-metadata -->
|
</div><!-- .comment-metadata -->
|
||||||
|
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '5.6-alpha-49156';
|
$wp_version = '5.6-alpha-49157';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
Loading…
Reference in New Issue
Block a user