Make WordPress Core


Ignore:
Timestamp:
10/08/2019 07:05:53 PM (5 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/comments.php

    r46357 r46445  
    3232            <?php
    3333            if ( ! have_comments() ) {
    34                 esc_html_e( 'Leave a comment', 'twentytwenty' );
     34                _e( 'Leave a comment', 'twentytwenty' );
    3535            } elseif ( '1' === $comments_number ) {
    3636                /* translators: %s: post title */
    37                 printf( esc_html_x( 'One reply on &ldquo;%s&rdquo;', 'comments title', 'twentytwenty' ), esc_html( get_the_title() ) );
     37                printf( _x( 'One reply on &ldquo;%s&rdquo;', 'comments title', 'twentytwenty' ), esc_html( get_the_title() ) );
    3838            } else {
    39                 echo esc_html(
    40                     sprintf(
    41                         /* translators: 1: number of comments, 2: post title */
    42                         _nx(
    43                             '%1$s reply on &ldquo;%2$s&rdquo;',
    44                             '%1$s replies on &ldquo;%2$s&rdquo;',
    45                             $comments_number,
    46                             'comments title',
    47                             'twentytwenty'
    48                         ),
    49                         number_format_i18n( $comments_number ),
    50                         get_the_title()
    51                     )
     39                echo sprintf(
     40                    /* translators: 1: number of comments, 2: post title */
     41                    _nx(
     42                        '%1$s reply on &ldquo;%2$s&rdquo;',
     43                        '%1$s replies on &ldquo;%2$s&rdquo;',
     44                        $comments_number,
     45                        'comments title',
     46                        'twentytwenty'
     47                    ),
     48                    number_format_i18n( $comments_number ),
     49                    esc_html( get_the_title() )
    5250                );
    5351            }
     
    6159
    6260            <?php
    63 
    6461            wp_list_comments(
    6562                array(
     
    8178
    8279            if ( $comment_pagination ) {
     80                $pagination_classes = '';
    8381
    8482                // If we're only showing the "Next" link, add a class indicating so.
    85                 if ( strpos( $comment_pagination, 'prev page-numbers' ) === false ) {
     83                if ( false === strpos( $comment_pagination, 'prev page-numbers' ) ) {
    8684                    $pagination_classes = ' only-next';
    87                 } else {
    88                     $pagination_classes = '';
    8985                }
    9086                ?>
    9187
    92                 <nav class="comments-pagination pagination<?php echo esc_attr( $pagination_classes ); ?>" aria-label="<?php esc_attr_e( 'Comments', 'twentytwenty' ); ?>">
     88                <nav class="comments-pagination pagination<?php echo $pagination_classes; //phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- static output ?>" aria-label="<?php esc_attr_e( 'Comments', 'twentytwenty' ); ?>">
    9389                    <?php echo wp_kses_post( $comment_pagination ); ?>
    9490                </nav>
     
    129125    <div class="comment-respond" id="respond">
    130126
    131         <p class="comments-closed"><?php _e( 'Comments are closed.', 'twentytwenty' ); // phpcs:ignore WordPress.Security.EscapeOutput.UnsafePrintingFunction -- core trusts translations ?></p>
     127        <p class="comments-closed"><?php _e( 'Comments are closed.', 'twentytwenty' ); ?></p>
    132128
    133129    </div><!-- #respond -->
Note: See TracChangeset for help on using the changeset viewer.