Make WordPress Core


Ignore:
Timestamp:
11/30/2017 11:09:33 PM (7 years ago)
Author:
pento
Message:

Code is Poetry.
WordPress' code just... wasn't.
This is now dealt with.

Props jrf, pento, netweb, GaryJ, jdgrimes, westonruter, Greg Sherwood from PHPCS, and everyone who's ever contributed to WPCS and PHPCS.
Fixes #41057.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentyeleven/comments.php

    r25746 r42343  
    3232        <h2 id="comments-title">
    3333            <?php
    34                 printf( _n( 'One thought on &ldquo;%2$s&rdquo;', '%1$s thoughts on &ldquo;%2$s&rdquo;', get_comments_number(), 'twentyeleven' ),
    35                     number_format_i18n( get_comments_number() ), '<span>' . get_the_title() . '</span>' );
     34                printf(
     35                    _n( 'One thought on &ldquo;%2$s&rdquo;', '%1$s thoughts on &ldquo;%2$s&rdquo;', get_comments_number(), 'twentyeleven' ),
     36                    number_format_i18n( get_comments_number() ), '<span>' . get_the_title() . '</span>'
     37                );
    3638            ?>
    3739        </h2>
     
    7173         * But we only want the note on posts and pages that had comments in the first place.
    7274         */
    73         if ( ! comments_open() && get_comments_number() ) : ?>
    74         <p class="nocomments"><?php _e( 'Comments are closed.' , 'twentyeleven' ); ?></p>
     75        if ( ! comments_open() && get_comments_number() ) :
     76        ?>
     77        <p class="nocomments"><?php _e( 'Comments are closed.', 'twentyeleven' ); ?></p>
    7578        <?php endif; ?>
    7679
Note: See TracChangeset for help on using the changeset viewer.