Changeset 46357 for trunk/src/wp-content/themes/twentytwenty/classes/class-twentytwenty-walker-comment.php
- Timestamp:
- 09/30/2019 05:40:14 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-content/themes/twentytwenty/classes/class-twentytwenty-walker-comment.php
r46271 r46357 70 70 </time> 71 71 </a> 72 <?php 73 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 translations 75 } 76 ?> 72 77 </div><!-- .comment-metadata --> 73 78 … … 85 90 <?php 86 91 } 92 87 93 ?> 88 94 … … 106 112 $by_post_author = twentytwenty_is_comment_by_post_author( $comment ); 107 113 108 $edit_comment_link = get_edit_comment_link() ? '<a class="edit-comment-link" href="' . esc_url( get_edit_comment_link() ) . '">' . __( 'Edit', 'twentytwenty' ) . '</a>' : ''; 109 110 if ( $comment_reply_link || $by_post_author || $edit_comment_link ) { 114 if ( $comment_reply_link || $by_post_author ) { 111 115 ?> 112 116 … … 116 120 if ( $comment_reply_link ) { 117 121 echo $comment_reply_link; //phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped --Link is escaped in https://developer.wordpress.org/reference/functions/get_comment_reply_link/ 118 }119 if ( $edit_comment_link ) {120 echo $edit_comment_link; //phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped --Link escaped on line 109.121 122 } 122 123 if ( $by_post_author ) {
Note: See TracChangeset
for help on using the changeset viewer.