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/single.php

    r41357 r42343  
    1515        <?php
    1616        // Start the loop.
    17         while ( have_posts() ) : the_post();
     17        while ( have_posts() ) :
     18            the_post();
    1819
    1920            /*
     
    3031
    3132            // Previous/next post navigation.
    32             the_post_navigation( array(
    33                 'next_text' => '<span class="meta-nav" aria-hidden="true">' . __( 'Next', 'twentyfifteen' ) . '</span> ' .
    34                     '<span class="screen-reader-text">' . __( 'Next post:', 'twentyfifteen' ) . '</span> ' .
    35                     '<span class="post-title">%title</span>',
    36                 'prev_text' => '<span class="meta-nav" aria-hidden="true">' . __( 'Previous', 'twentyfifteen' ) . '</span> ' .
    37                     '<span class="screen-reader-text">' . __( 'Previous post:', 'twentyfifteen' ) . '</span> ' .
    38                     '<span class="post-title">%title</span>',
    39             ) );
     33            the_post_navigation(
     34                array(
     35                    'next_text' => '<span class="meta-nav" aria-hidden="true">' . __( 'Next', 'twentyfifteen' ) . '</span> ' .
     36                        '<span class="screen-reader-text">' . __( 'Next post:', 'twentyfifteen' ) . '</span> ' .
     37                        '<span class="post-title">%title</span>',
     38                    'prev_text' => '<span class="meta-nav" aria-hidden="true">' . __( 'Previous', 'twentyfifteen' ) . '</span> ' .
     39                        '<span class="screen-reader-text">' . __( 'Previous post:', 'twentyfifteen' ) . '</span> ' .
     40                        '<span class="post-title">%title</span>',
     41                )
     42            );
    4043
    41         // End the loop.
     44            // End the loop.
    4245        endwhile;
    4346        ?>
Note: See TracChangeset for help on using the changeset viewer.