From 7bfe507dad53b973a082da47c2ee64df3a116a2e Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Thu, 15 Oct 2020 15:11:43 +0000 Subject: [PATCH] Twenty Twenty: Remove extra space from the comment link in `TwentyTwenty_Walker_Comment`. See #51533. git-svn-id: https://develop.svn.wordpress.org/trunk@49158 602fd350-edb4-49c9-b593-d223f7449a82 --- .../class-twentytwenty-walker-comment.php | 26 ++++++++++++------- 1 file changed, 16 insertions(+), 10 deletions(-) diff --git a/src/wp-content/themes/twentytwenty/classes/class-twentytwenty-walker-comment.php b/src/wp-content/themes/twentytwenty/classes/class-twentytwenty-walker-comment.php index eda038e3c8..c085878cb7 100644 --- a/src/wp-content/themes/twentytwenty/classes/class-twentytwenty-walker-comment.php +++ b/src/wp-content/themes/twentytwenty/classes/class-twentytwenty-walker-comment.php @@ -63,18 +63,24 @@ if ( ! class_exists( 'TwentyTwenty_Walker_Comment' ) ) {
- - - - ', + 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 ' ' . __( 'Edit', 'twentytwenty' ) . ''; + printf( + ' %s', + esc_url( get_edit_comment_link() ), + __( 'Edit', 'twentytwenty' ) + ); } ?>