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/twentysixteen/search.php

    r40851 r42343  
    2121            <?php
    2222            // Start the loop.
    23             while ( have_posts() ) : the_post();
     23            while ( have_posts() ) :
     24                the_post();
    2425
    2526                /**
     
    3031                get_template_part( 'template-parts/content', 'search' );
    3132
    32             // End the loop.
     33                // End the loop.
    3334            endwhile;
    3435
    3536            // Previous/next page navigation.
    36             the_posts_pagination( array(
    37                 'prev_text'          => __( 'Previous page', 'twentysixteen' ),
    38                 'next_text'          => __( 'Next page', 'twentysixteen' ),
    39                 'before_page_number' => '<span class="meta-nav screen-reader-text">' . __( 'Page', 'twentysixteen' ) . ' </span>',
    40             ) );
     37            the_posts_pagination(
     38                array(
     39                    'prev_text'          => __( 'Previous page', 'twentysixteen' ),
     40                    'next_text'          => __( 'Next page', 'twentysixteen' ),
     41                    'before_page_number' => '<span class="meta-nav screen-reader-text">' . __( 'Page', 'twentysixteen' ) . ' </span>',
     42                )
     43            );
    4144
    42         // If no content, include the "No posts found" template.
     45            // If no content, include the "No posts found" template.
    4346        else :
    4447            get_template_part( 'template-parts/content', 'none' );
Note: See TracChangeset for help on using the changeset viewer.