Make WordPress Core


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

    r41349 r42343  
    2020
    2121<?php
    22     if ( is_front_page() && twentyfourteen_has_featured_posts() ) {
    23         // Include the featured content template.
    24         get_template_part( 'featured-content' );
    25     }
     22if ( is_front_page() && twentyfourteen_has_featured_posts() ) {
     23    // Include the featured content template.
     24    get_template_part( 'featured-content' );
     25}
    2626?>
    2727
     
    3030
    3131        <?php
    32             if ( have_posts() ) :
    33                 // Start the Loop.
    34                 while ( have_posts() ) : the_post();
     32        if ( have_posts() ) :
     33            // Start the Loop.
     34            while ( have_posts() ) :
     35                the_post();
    3536
    36                     /*
    37                     * Include the post format-specific template for the content. If you want to
    38                     * use this in a child theme, then include a file called content-___.php
    39                     * (where ___ is the post format) and that will be used instead.
    40                     */
    41                     get_template_part( 'content', get_post_format() );
     37                /*
     38                * Include the post format-specific template for the content. If you want to
     39                * use this in a child theme, then include a file called content-___.php
     40                * (where ___ is the post format) and that will be used instead.
     41                */
     42                get_template_part( 'content', get_post_format() );
    4243
    4344                endwhile;
    44                 // Previous/next post navigation.
    45                 twentyfourteen_paging_nav();
     45            // Previous/next post navigation.
     46            twentyfourteen_paging_nav();
    4647
    4748            else :
Note: See TracChangeset for help on using the changeset viewer.