WordPress.org

Making WordPress.org


Ignore:
Timestamp:
12/15/2017 12:13:33 AM (3 years ago)
Author:
obenland
Message:

Main: Conform to WPCS.

See #2861.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg/comments.php

    r5892 r6277  
    2727    <?php
    2828    // You can start editing here -- including this comment!
    29     if ( have_comments() ) : ?>
     29    if ( have_comments() ) :
     30    ?>
    3031        <h2 class="comments-title">
    3132            <?php
     
    3334            if ( 1 === $comment_count ) {
    3435                printf(
    35                 /* translators: 1: title. */
     36                    /* translators: 1: title. */
    3637                    esc_html_e( 'One thought on &ldquo;%1$s&rdquo;', 'wporg' ),
    3738                    '<span>' . get_the_title() . '</span>'
     
    3940            } else {
    4041                printf( // WPCS: XSS OK.
    41                 /* translators: 1: comment count number, 2: title. */
     42                    /* translators: 1: comment count number, 2: title. */
    4243                    esc_html( _nx( '%1$s thought on &ldquo;%2$s&rdquo;', '%1$s thoughts on &ldquo;%2$s&rdquo;', $comment_count, 'comments title', 'wporg' ) ),
    4344                    number_format_i18n( $comment_count ),
     
    5960        </ol><!-- .comment-list -->
    6061
    61         <?php the_comments_navigation();
     62        <?php
     63        the_comments_navigation();
    6264
    6365        // If comments are closed and there are comments, let's leave a little note, shall we?
    64         if ( ! comments_open() ) : ?>
     66        if ( ! comments_open() ) :
     67        ?>
    6568            <p class="no-comments"><?php esc_html_e( 'Comments are closed.', 'wporg' ); ?></p>
    66             <?php
     69        <?php
    6770        endif;
    6871
Note: See TracChangeset for help on using the changeset viewer.