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

    r30896 r42343  
    1919    <header class="entry-header">
    2020        <?php
    21             if ( is_single() ) :
    22                 the_title( '<h1 class="entry-title">', '</h1>' );
     21        if ( is_single() ) :
     22            the_title( '<h1 class="entry-title">', '</h1>' );
    2323            else :
    2424                the_title( sprintf( '<h2 class="entry-title"><a href="%s" rel="bookmark">', esc_url( get_permalink() ) ), '</a></h2>' );
     
    3030        <?php
    3131            /* translators: %s: Name of current post */
    32             the_content( sprintf(
    33                 __( 'Continue reading %s', 'twentyfifteen' ),
    34                 the_title( '<span class="screen-reader-text">', '</span>', false )
    35             ) );
     32            the_content(
     33                sprintf(
     34                    __( 'Continue reading %s', 'twentyfifteen' ),
     35                    the_title( '<span class="screen-reader-text">', '</span>', false )
     36                )
     37            );
    3638
    37             wp_link_pages( array(
    38                 'before'      => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentyfifteen' ) . '</span>',
    39                 'after'       => '</div>',
    40                 'link_before' => '<span>',
    41                 'link_after'  => '</span>',
    42                 'pagelink'    => '<span class="screen-reader-text">' . __( 'Page', 'twentyfifteen' ) . ' </span>%',
    43                 'separator'   => '<span class="screen-reader-text">, </span>',
    44             ) );
     39            wp_link_pages(
     40                array(
     41                    'before'      => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentyfifteen' ) . '</span>',
     42                    'after'       => '</div>',
     43                    'link_before' => '<span>',
     44                    'link_after'  => '</span>',
     45                    'pagelink'    => '<span class="screen-reader-text">' . __( 'Page', 'twentyfifteen' ) . ' </span>%',
     46                    'separator'   => '<span class="screen-reader-text">, </span>',
     47                )
     48            );
    4549        ?>
    4650    </div><!-- .entry-content -->
     
    4852    <?php
    4953        // Author bio.
    50         if ( is_single() && get_the_author_meta( 'description' ) ) :
    51             get_template_part( 'author-bio' );
     54    if ( is_single() && get_the_author_meta( 'description' ) ) :
     55        get_template_part( 'author-bio' );
    5256        endif;
    5357    ?>
Note: See TracChangeset for help on using the changeset viewer.