WordPress.org

Make WordPress Core


Ignore:
Timestamp:
11/30/2017 11:09:33 PM (3 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/twentyseventeen/front-page.php

    r39732 r42343  
    1818    <main id="main" class="site-main" role="main">
    1919
    20         <?php // Show the selected frontpage content.
     20        <?php
     21        // Show the selected frontpage content.
    2122        if ( have_posts() ) :
    22             while ( have_posts() ) : the_post();
     23            while ( have_posts() ) :
     24                the_post();
    2325                get_template_part( 'template-parts/page/content', 'front-page' );
    2426            endwhile;
    2527        else : // I'm not sure it's possible to have no posts when this page is shown, but WTH.
    2628            get_template_part( 'template-parts/post/content', 'none' );
    27         endif; ?>
     29        endif;
     30        ?>
    2831
    2932        <?php
     
    4750            }
    4851
    49     endif; // The if ( 0 !== twentyseventeen_panel_count() ) ends here. ?>
     52    endif; // The if ( 0 !== twentyseventeen_panel_count() ) ends here.
     53    ?>
    5054
    5155    </main><!-- #main -->
    5256</div><!-- #primary -->
    5357
    54 <?php get_footer();
     58<?php
     59get_footer();
Note: See TracChangeset for help on using the changeset viewer.