Make WordPress Core


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

    r40851 r42343  
    3333            <?php
    3434            // Start the Loop.
    35             while ( have_posts() ) : the_post();
     35            while ( have_posts() ) :
     36                the_post();
    3637
    3738                /*
     
    4243                get_template_part( 'template-parts/content', get_post_format() );
    4344
    44             // End the loop.
     45                // End the loop.
    4546            endwhile;
    4647
    4748            // Previous/next page navigation.
    48             the_posts_pagination( array(
    49                 'prev_text'          => __( 'Previous page', 'twentysixteen' ),
    50                 'next_text'          => __( 'Next page', 'twentysixteen' ),
    51                 'before_page_number' => '<span class="meta-nav screen-reader-text">' . __( 'Page', 'twentysixteen' ) . ' </span>',
    52             ) );
     49            the_posts_pagination(
     50                array(
     51                    'prev_text'          => __( 'Previous page', 'twentysixteen' ),
     52                    'next_text'          => __( 'Next page', 'twentysixteen' ),
     53                    'before_page_number' => '<span class="meta-nav screen-reader-text">' . __( 'Page', 'twentysixteen' ) . ' </span>',
     54                )
     55            );
    5356
    54         // If no content, include the "No posts found" template.
     57            // If no content, include the "No posts found" template.
    5558        else :
    5659            get_template_part( 'template-parts/content', 'none' );
Note: See TracChangeset for help on using the changeset viewer.