Make WordPress Core


Ignore:
Timestamp:
10/08/2019 07:05:53 PM (6 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 [46357], see https://github.com/WordPress/twentytwenty/compare/7157870...7246fd6.

Props anlino, ianbelanger, poena, williampatton, nielslange, acosmin, netweb, joyusly, luminuu, itowhid06, cbravobernal, intimez, glauberglauber, ocean90, amolv, briceduclos, aristath, mukesh27, garrett-eclipse, audrasjb, afercia, dianeco, utsav72640, mahesh901122, tobifjellner.
See #48110.

File:
1 edited

Legend:

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

    r46357 r46445  
    3434
    3535            ?>
    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 ); ?>>
    3737                <article id="div-comment-<?php comment_ID(); ?>" class="comment-body">
    3838                    <footer class="comment-meta">
     
    5151                            }
    5252
    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                            );
    5558
    5659                            if ( ! empty( $comment_author_url ) ) {
     
    7275                            <?php
    7376                            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
     77                                echo ' &bull; <a class="comment-edit-link" href="' . esc_url( get_edit_comment_link() ) . '">' . __( 'Edit', 'twentytwenty' ) . '</a>';
    7578                            }
    7679                            ?>
     
    7982                    </footer><!-- .comment-meta -->
    8083
    81                     <div class="comment-content">
     84                    <div class="comment-content entry-content">
    8285
    8386                        <?php
     
    8790                        if ( '0' === $comment->comment_approved ) {
    8891                            ?>
    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>
    9093                            <?php
    9194                        }
     
    122125                            }
    123126                            if ( $by_post_author ) {
    124                                 echo '<span class="by-post-author">' . __( 'By Post Author', 'twentytwenty' ) . '</span>'; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- core trusts translations
     127                                echo '<span class="by-post-author">' . __( 'By Post Author', 'twentytwenty' ) . '</span>';
    125128                            }
    126129                            ?>
Note: See TracChangeset for help on using the changeset viewer.