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

    r32116 r42343  
    1616?>
    1717
    18 <?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
     18<?php
     19if ( have_posts() ) {
     20    while ( have_posts() ) :
     21        the_post();
     22    ?>
    1923
    2024                <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
     
    2731                    <div class="entry-content">
    2832                        <?php the_content(); ?>
    29                         <?php wp_link_pages( array( 'before' => '<div class="page-link">' . __( 'Pages:', 'twentyten' ), 'after' => '</div>' ) ); ?>
     33                        <?php
     34                        wp_link_pages(
     35                            array(
     36                                'before' => '<div class="page-link">' . __( 'Pages:', 'twentyten' ),
     37                                'after'  => '</div>',
     38                            )
     39                        );
     40    ?>
    3041                        <?php edit_post_link( __( 'Edit', 'twentyten' ), '<span class="edit-link">', '</span>' ); ?>
    3142                    </div><!-- .entry-content -->
     
    3445                <?php comments_template( '', true ); ?>
    3546
    36 <?php endwhile; // end of the loop. ?>
     47<?php endwhile;
     48}; // end of the loop. ?>
Note: See TracChangeset for help on using the changeset viewer.