Changeset 46445 for trunk/src/wp-content/themes/twentytwenty/classes/class-twentytwenty-walker-comment.php
- Timestamp:
- 10/08/2019 07:05:53 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-content/themes/twentytwenty/classes/class-twentytwenty-walker-comment.php
r46357 r46445 34 34 35 35 ?> 36 <<?php echo esc_html( $tag );?> 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"> … … 51 51 } 52 52 53 /* Translators: '%1$s = comment author name */ 54 printf( '<span class="fn">%1$s</span><span class="screen-reader-text says">%2$s</span>', esc_html( $comment_author ), __( 'says:', 'twentytwenty' ) ); // phpcs:ignore 53 printf( 54 '<span class="fn">%1$s</span><span class="screen-reader-text says">%2$s</span>', 55 esc_html( $comment_author ), 56 __( 'says:', 'twentytwenty' ) 57 ); 55 58 56 59 if ( ! empty( $comment_author_url ) ) { … … 72 75 <?php 73 76 if ( get_edit_comment_link() ) { 74 echo ' • <a class="comment-edit-link" href="' . esc_url( get_edit_comment_link() ) . '">' . __( 'Edit', 'twentytwenty' ) . '</a>'; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- core trusts translations77 echo ' • <a class="comment-edit-link" href="' . esc_url( get_edit_comment_link() ) . '">' . __( 'Edit', 'twentytwenty' ) . '</a>'; 75 78 } 76 79 ?> … … 79 82 </footer><!-- .comment-meta --> 80 83 81 <div class="comment-content ">84 <div class="comment-content entry-content"> 82 85 83 86 <?php … … 87 90 if ( '0' === $comment->comment_approved ) { 88 91 ?> 89 <p class="comment-awaiting-moderation"><?php _e( 'Your comment is awaiting moderation.', 'twentytwenty' ); // phpcs:ignore WordPress.Security.EscapeOutput.UnsafePrintingFunction -- core trusts translations?></p>92 <p class="comment-awaiting-moderation"><?php _e( 'Your comment is awaiting moderation.', 'twentytwenty' ); ?></p> 90 93 <?php 91 94 } … … 122 125 } 123 126 if ( $by_post_author ) { 124 echo '<span class="by-post-author">' . __( 'By Post Author', 'twentytwenty' ) . '</span>'; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- core trusts translations127 echo '<span class="by-post-author">' . __( 'By Post Author', 'twentytwenty' ) . '</span>'; 125 128 } 126 129 ?>
Note: See TracChangeset
for help on using the changeset viewer.