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/twentyseventeen/archive.php

    r39072 r42343  
    2828
    2929        <?php
    30         if ( have_posts() ) : ?>
     30        if ( have_posts() ) :
     31        ?>
    3132            <?php
    3233            /* Start the Loop */
    33             while ( have_posts() ) : the_post();
     34            while ( have_posts() ) :
     35                the_post();
    3436
    3537                /*
     
    4244            endwhile;
    4345
    44             the_posts_pagination( array(
    45                 'prev_text' => twentyseventeen_get_svg( array( 'icon' => 'arrow-left' ) ) . '<span class="screen-reader-text">' . __( 'Previous page', 'twentyseventeen' ) . '</span>',
    46                 'next_text' => '<span class="screen-reader-text">' . __( 'Next page', 'twentyseventeen' ) . '</span>' . twentyseventeen_get_svg( array( 'icon' => 'arrow-right' ) ),
    47                 'before_page_number' => '<span class="meta-nav screen-reader-text">' . __( 'Page', 'twentyseventeen' ) . ' </span>',
    48             ) );
     46            the_posts_pagination(
     47                array(
     48                    'prev_text'          => twentyseventeen_get_svg( array( 'icon' => 'arrow-left' ) ) . '<span class="screen-reader-text">' . __( 'Previous page', 'twentyseventeen' ) . '</span>',
     49                    'next_text'          => '<span class="screen-reader-text">' . __( 'Next page', 'twentyseventeen' ) . '</span>' . twentyseventeen_get_svg( array( 'icon' => 'arrow-right' ) ),
     50                    'before_page_number' => '<span class="meta-nav screen-reader-text">' . __( 'Page', 'twentyseventeen' ) . ' </span>',
     51                )
     52            );
    4953
    5054        else :
     
    5256            get_template_part( 'template-parts/post/content', 'none' );
    5357
    54         endif; ?>
     58        endif;
     59        ?>
    5560
    5661        </main><!-- #main -->
     
    5964</div><!-- .wrap -->
    6065
    61 <?php get_footer();
     66<?php
     67get_footer();
Note: See TracChangeset for help on using the changeset viewer.