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/twentythirteen/archive.php

    r32116 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', 'twentythirteen' ), get_the_date() );
     27                <h1 class="archive-title">
     28                <?php
     29                if ( is_day() ) :
     30                    printf( __( 'Daily Archives: %s', 'twentythirteen' ), get_the_date() );
    3031                    elseif ( is_month() ) :
    3132                        printf( __( 'Monthly Archives: %s', 'twentythirteen' ), get_the_date( _x( 'F Y', 'monthly archives date format', 'twentythirteen' ) ) );
     
    3536                        _e( 'Archives', 'twentythirteen' );
    3637                    endif;
    37                 ?></h1>
     38                ?>
     39                </h1>
    3840            </header><!-- .archive-header -->
    3941
    4042            <?php /* The loop */ ?>
    41             <?php while ( have_posts() ) : the_post(); ?>
     43            <?php
     44            while ( have_posts() ) :
     45                the_post();
     46?>
    4247                <?php get_template_part( 'content', get_post_format() ); ?>
    4348            <?php endwhile; ?>
Note: See TracChangeset for help on using the changeset viewer.