Changeset 47122 for trunk/src/wp-content/themes/twentytwenty/classes/class-twentytwenty-walker-comment.php
- Timestamp:
- 01/29/2020 12:43:23 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-content/themes/twentytwenty/classes/class-twentytwenty-walker-comment.php
r46827 r47122 34 34 35 35 ?> 36 <<?php echo $tag; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- static output ?> id="comment-<?php comment_ID(); ?>" <?php comment_class( $this->has_children ? 'parent' : '', $comment ); ?>>36 <<?php echo $tag; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- static output ?> id="comment-<?php comment_ID(); ?>" <?php comment_class( $this->has_children ? 'parent' : '', $comment ); ?>> 37 37 <article id="div-comment-<?php comment_ID(); ?>" class="comment-body"> 38 38 <footer class="comment-meta"> … … 46 46 echo wp_kses_post( $avatar ); 47 47 } else { 48 printf( '<a href="%s" rel="external nofollow" class="url">', $comment_author_url ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped --Escaped in https://developer.wordpress.org/reference/functions/get_comment_author_url/48 printf( '<a href="%s" rel="external nofollow" class="url">', $comment_author_url ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped --Escaped in https://developer.wordpress.org/reference/functions/get_comment_author_url/ 49 49 echo wp_kses_post( $avatar ); 50 50 } … … 66 66 <a href="<?php echo esc_url( get_comment_link( $comment, $args ) ); ?>"> 67 67 <?php 68 /* Translators: 1 = comment date, 2 = comment time*/68 /* translators: 1: Comment date, 2: Comment time. */ 69 69 $comment_timestamp = sprintf( __( '%1$s at %2$s', 'twentytwenty' ), get_comment_date( '', $comment ), get_comment_time() ); 70 70 ?> … … 122 122 <?php 123 123 if ( $comment_reply_link ) { 124 echo $comment_reply_link; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped --Link is escaped in https://developer.wordpress.org/reference/functions/get_comment_reply_link/124 echo $comment_reply_link; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Link is escaped in https://developer.wordpress.org/reference/functions/get_comment_reply_link/ 125 125 } 126 126 if ( $by_post_author ) {
Note: See TracChangeset
for help on using the changeset viewer.