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/twentytwelve/index.php

    r32116 r42343  
    2222
    2323            <?php /* Start the Loop */ ?>
    24             <?php while ( have_posts() ) : the_post(); ?>
     24            <?php
     25            while ( have_posts() ) :
     26                the_post();
     27?>
    2528                <?php get_template_part( 'content', get_post_format() ); ?>
    2629            <?php endwhile; ?>
     
    3235            <article id="post-0" class="post no-results not-found">
    3336
    34             <?php if ( current_user_can( 'edit_posts' ) ) :
     37            <?php
     38            if ( current_user_can( 'edit_posts' ) ) :
    3539                // Show a different message to a logged-in user who can add posts.
    3640            ?>
     
    4347                </div><!-- .entry-content -->
    4448
    45             <?php else :
     49            <?php
     50            else :
    4651                // Show the default message to everyone else.
    4752            ?>
Note: See TracChangeset for help on using the changeset viewer.