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/page-templates/contributors.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            ?>
    2728
    2829            <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
    29                 <?php
    30                     the_title( '<header class="entry-header"><h1 class="entry-title">', '</h1></header><!-- .entry-header -->' );
     30            <?php
     31                the_title( '<header class="entry-header"><h1 class="entry-title">', '</h1></header><!-- .entry-header -->' );
    3132
    32                     // Output the authors list.
    33                     twentyfourteen_list_authors();
     33                // Output the authors list.
     34                twentyfourteen_list_authors();
    3435
    35                     edit_post_link( __( 'Edit', 'twentyfourteen' ), '<footer class="entry-meta"><span class="edit-link">', '</span></footer>' );
    36                 ?>
     36                edit_post_link( __( 'Edit', 'twentyfourteen' ), '<footer class="entry-meta"><span class="edit-link">', '</span></footer>' );
     37            ?>
    3738            </article><!-- #post-## -->
    3839
    3940            <?php
    40                     // If comments are open or we have at least one comment, load up the comment template.
    41                     if ( comments_open() || get_comments_number() ) {
    42                         comments_template();
    43                     }
     41                // If comments are open or we have at least one comment, load up the comment template.
     42            if ( comments_open() || get_comments_number() ) {
     43                comments_template();
     44            }
    4445                endwhile;
    4546            ?>
Note: See TracChangeset for help on using the changeset viewer.