Make WordPress Core


Ignore:
Timestamp:
09/30/2019 05:40:14 PM (7 years ago)
Author:
desrosj
Message:

Bundled Themes: Update Twenty Twenty.

This brings trunk’s version of Twenty Twenty in-sync with GitHub.

For a complete list of changes since [46271], see https://github.com/WordPress/twentytwenty/compare/932b16248...dd7032f

Props anlino, ianbelanger, nielslange, acosmin, netweb, williampatton, adhitya03, phpdocs, acalfieri, itowhid06, littlebigthing, aristath, karmatosed, poena.
See #48110.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentytwenty/classes/class-twentytwenty-walker-comment.php

    r46271 r46357  
    7070                                                                </time>
    7171                                                        </a>
     72                                                        <?php
     73                                                        if ( get_edit_comment_link() ) {
     74                                                                echo ' &bull; <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                                                        ?>
    7277                                                </div><!-- .comment-metadata -->
    7378
     
    8590                                                        <?php
    8691                                                }
     92
    8793                                                ?>
    8894
     
    106112                                        $by_post_author = twentytwenty_is_comment_by_post_author( $comment );
    107113
    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 ) {
    111115                                                ?>
    112116
     
    116120                                                        if ( $comment_reply_link ) {
    117121                                                                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.
    121122                                                        }
    122123                                                        if ( $by_post_author ) {
Note: See TracChangeset for help on using the changeset viewer.