Make WordPress Core


Ignore:
Timestamp:
11/30/2017 11:09:33 PM (8 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/twentytwelve/archive.php

    r41349 r42343  
    2525        <?php if ( have_posts() ) : ?>
    2626            <header class="archive-header">
    27                 <h1 class="archive-title"><?php
    28                     if ( is_day() ) :
    29                         printf( __( 'Daily Archives: %s', 'twentytwelve' ), '<span>' . get_the_date() . '</span>' );
     27                <h1 class="archive-title">
     28                <?php
     29                if ( is_day() ) :
     30                    printf( __( 'Daily Archives: %s', 'twentytwelve' ), '<span>' . get_the_date() . '</span>' );
    3031                    elseif ( is_month() ) :
    3132                        printf( __( 'Monthly Archives: %s', 'twentytwelve' ), '<span>' . get_the_date( _x( 'F Y', 'monthly archives date format', 'twentytwelve' ) ) . '</span>' );
     
    3536                        _e( 'Archives', 'twentytwelve' );
    3637                    endif;
    37                 ?></h1>
     38                ?>
     39                </h1>
    3840            </header><!-- .archive-header -->
    3941
    4042            <?php
    4143            /* Start the Loop */
    42             while ( have_posts() ) : the_post();
     44            while ( have_posts() ) :
     45                the_post();
    4346
    4447                /* Include the post format-specific template for the content. If you want to
Note: See TracChangeset for help on using the changeset viewer.