--- a/wp/wp-includes/class-walker-comment.php Tue Dec 15 15:52:01 2020 +0100
+++ b/wp/wp-includes/class-walker-comment.php Wed Sep 21 18:19:35 2022 +0200
@@ -200,7 +200,7 @@
}
if ( 'comment' === $comment->comment_type ) {
- remove_filter( 'comment_text', array( $this, 'filter_comment_text' ), 40, 2 );
+ remove_filter( 'comment_text', array( $this, 'filter_comment_text' ), 40 );
}
}
@@ -301,7 +301,7 @@
if ( $commenter['comment_author_email'] ) {
$moderation_note = __( 'Your comment is awaiting moderation.' );
} else {
- $moderation_note = __( 'Your comment is awaiting moderation. This is a preview, your comment will be visible after it has been approved.' );
+ $moderation_note = __( 'Your comment is awaiting moderation. This is a preview; your comment will be visible after it has been approved.' );
}
?>
<<?php echo $tag; ?> <?php comment_class( $this->has_children ? 'parent' : '', $comment ); ?> id="comment-<?php comment_ID(); ?>">
@@ -333,15 +333,21 @@
<br />
<?php endif; ?>
- <div class="comment-meta commentmetadata"><a href="<?php echo esc_url( get_comment_link( $comment, $args ) ); ?>">
+ <div class="comment-meta commentmetadata">
<?php
- /* translators: 1: Comment date, 2: Comment time. */
- printf( __( '%1$s at %2$s' ), get_comment_date( '', $comment ), get_comment_time() );
+ printf(
+ '<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()
+ )
+ );
+
+ edit_comment_link( __( '(Edit)' ), ' ', '' );
?>
- </a>
- <?php
- edit_comment_link( __( '(Edit)' ), ' ', '' );
- ?>
</div>
<?php
@@ -399,7 +405,7 @@
if ( $commenter['comment_author_email'] ) {
$moderation_note = __( 'Your comment is awaiting moderation.' );
} else {
- $moderation_note = __( 'Your comment is awaiting moderation. This is a preview, your comment will be visible after it has been approved.' );
+ $moderation_note = __( 'Your comment is awaiting moderation. This is a preview; your comment will be visible after it has been approved.' );
}
?>
<<?php echo $tag; ?> id="comment-<?php comment_ID(); ?>" <?php comment_class( $this->has_children ? 'parent' : '', $comment ); ?>>
@@ -427,15 +433,21 @@
</div><!-- .comment-author -->
<div class="comment-metadata">
- <a href="<?php echo esc_url( get_comment_link( $comment, $args ) ); ?>">
- <time datetime="<?php comment_time( 'c' ); ?>">
- <?php
- /* translators: 1: Comment date, 2: Comment time. */
- printf( __( '%1$s at %2$s' ), get_comment_date( '', $comment ), get_comment_time() );
- ?>
- </time>
- </a>
- <?php edit_comment_link( __( 'Edit' ), '<span class="edit-link">', '</span>' ); ?>
+ <?php
+ printf(
+ '<a href="%s"><time datetime="%s">%s</time></a>',
+ esc_url( get_comment_link( $comment, $args ) ),
+ get_comment_time( 'c' ),
+ sprintf(
+ /* translators: 1: Comment date, 2: Comment time. */
+ __( '%1$s at %2$s' ),
+ get_comment_date( '', $comment ),
+ get_comment_time()
+ )
+ );
+
+ edit_comment_link( __( 'Edit' ), ' <span class="edit-link">', '</span>' );
+ ?>
</div><!-- .comment-metadata -->
<?php if ( '0' == $comment->comment_approved ) : ?>