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-templates/full-width.php

    r26556 r42343  
    1313
    1414<?php
    15     if ( is_front_page() && twentyfourteen_has_featured_posts() ) {
    16         // Include the featured content template.
    17         get_template_part( 'featured-content' );
    18     }
     15if ( is_front_page() && twentyfourteen_has_featured_posts() ) {
     16    // Include the featured content template.
     17    get_template_part( 'featured-content' );
     18}
    1919?>
    2020
     
    2323            <?php
    2424                // Start the Loop.
    25                 while ( have_posts() ) : the_post();
     25            while ( have_posts() ) :
     26                the_post();
    2627
    27                     // Include the page content template.
    28                     get_template_part( 'content', 'page' );
     28                // Include the page content template.
     29                get_template_part( 'content', 'page' );
    2930
    30                     // If comments are open or we have at least one comment, load up the comment template.
    31                     if ( comments_open() || get_comments_number() ) {
    32                         comments_template();
    33                     }
     31                // If comments are open or we have at least one comment, load up the comment template.
     32                if ( comments_open() || get_comments_number() ) {
     33                    comments_template();
     34                }
    3435                endwhile;
    3536            ?>
Note: See TracChangeset for help on using the changeset viewer.