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/twentyfourteen/page.php

    r26761 r42343  
    1717
    1818<?php
    19     if ( is_front_page() && twentyfourteen_has_featured_posts() ) {
    20         // Include the featured content template.
    21         get_template_part( 'featured-content' );
    22     }
     19if ( is_front_page() && twentyfourteen_has_featured_posts() ) {
     20    // Include the featured content template.
     21    get_template_part( 'featured-content' );
     22}
    2323?>
    2424    <div id="primary" class="content-area">
     
    2727            <?php
    2828                // Start the Loop.
    29                 while ( have_posts() ) : the_post();
     29            while ( have_posts() ) :
     30                the_post();
    3031
    31                     // Include the page content template.
    32                     get_template_part( 'content', 'page' );
     32                // Include the page content template.
     33                get_template_part( 'content', 'page' );
    3334
    34                     // If comments are open or we have at least one comment, load up the comment template.
    35                     if ( comments_open() || get_comments_number() ) {
    36                         comments_template();
    37                     }
     35                // If comments are open or we have at least one comment, load up the comment template.
     36                if ( comments_open() || get_comments_number() ) {
     37                    comments_template();
     38                }
    3839                endwhile;
    3940            ?>
Note: See TracChangeset for help on using the changeset viewer.