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/twentyfourteen/content-gallery.php

    r30796 r42343  
    2020            endif;
    2121
    22             if ( is_single() ) :
    23                 the_title( '<h1 class="entry-title">', '</h1>' );
     22if ( is_single() ) :
     23    the_title( '<h1 class="entry-title">', '</h1>' );
    2424            else :
    2525                the_title( '<h1 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h1>' );
     
    4545        <?php
    4646            /* translators: %s: Name of current post */
    47             the_content( sprintf(
    48                 __( 'Continue reading %s <span class="meta-nav">&rarr;</span>', 'twentyfourteen' ),
    49                 the_title( '<span class="screen-reader-text">', '</span>', false )
    50             ) );
     47            the_content(
     48                sprintf(
     49                    __( 'Continue reading %s <span class="meta-nav">&rarr;</span>', 'twentyfourteen' ),
     50                    the_title( '<span class="screen-reader-text">', '</span>', false )
     51                )
     52            );
    5153
    52             wp_link_pages( array(
    53                 'before'      => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentyfourteen' ) . '</span>',
    54                 'after'       => '</div>',
    55                 'link_before' => '<span>',
    56                 'link_after'  => '</span>',
    57             ) );
     54            wp_link_pages(
     55                array(
     56                    'before'      => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentyfourteen' ) . '</span>',
     57                    'after'       => '</div>',
     58                    'link_before' => '<span>',
     59                    'link_after'  => '</span>',
     60                )
     61            );
    5862        ?>
    5963    </div><!-- .entry-content -->
Note: See TracChangeset for help on using the changeset viewer.