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

    r30824 r42343  
    3030            <?php
    3131            // Start the loop.
    32             while ( have_posts() ) : the_post();
     32            while ( have_posts() ) :
     33                the_post();
    3334
    3435                /*
     
    3940                get_template_part( 'content', get_post_format() );
    4041
    41             // End the loop.
     42                // End the loop.
    4243            endwhile;
    4344
    4445            // Previous/next page navigation.
    45             the_posts_pagination( array(
    46                 'prev_text'          => __( 'Previous page', 'twentyfifteen' ),
    47                 'next_text'          => __( 'Next page', 'twentyfifteen' ),
    48                 'before_page_number' => '<span class="meta-nav screen-reader-text">' . __( 'Page', 'twentyfifteen' ) . ' </span>',
    49             ) );
     46            the_posts_pagination(
     47                array(
     48                    'prev_text'          => __( 'Previous page', 'twentyfifteen' ),
     49                    'next_text'          => __( 'Next page', 'twentyfifteen' ),
     50                    'before_page_number' => '<span class="meta-nav screen-reader-text">' . __( 'Page', 'twentyfifteen' ) . ' </span>',
     51                )
     52            );
    5053
    51         // If no content, include the "No posts found" template.
     54            // If no content, include the "No posts found" template.
    5255        else :
    5356            get_template_part( 'content', 'none' );
Note: See TracChangeset for help on using the changeset viewer.