Make WordPress Core


Ignore:
Timestamp:
11/30/2017 11:09:33 PM (9 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-link.php

    r30896 r42343  
    1616        <header class="entry-header">
    1717                <?php
    18                         if ( is_single() ) :
    19                                 the_title( sprintf( '<h1 class="entry-title"><a href="%s">', esc_url( twentyfifteen_get_link_url() ) ), '</a></h1>' );
     18                if ( is_single() ) :
     19                        the_title( sprintf( '<h1 class="entry-title"><a href="%s">', esc_url( twentyfifteen_get_link_url() ) ), '</a></h1>' );
    2020                        else :
    2121                                the_title( sprintf( '<h2 class="entry-title"><a href="%s">', esc_url( twentyfifteen_get_link_url() ) ), '</a></h2>' );
     
    2828                <?php
    2929                        /* translators: %s: Name of current post */
    30                         the_content( sprintf(
    31                                 __( 'Continue reading %s', 'twentyfifteen' ),
    32                                 the_title( '<span class="screen-reader-text">', '</span>', false )
    33                         ) );
     30                        the_content(
     31                                sprintf(
     32                                        __( 'Continue reading %s', 'twentyfifteen' ),
     33                                        the_title( '<span class="screen-reader-text">', '</span>', false )
     34                                )
     35                        );
    3436
    35                         wp_link_pages( array(
    36                                 'before'      => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentyfifteen' ) . '</span>',
    37                                 'after'       => '</div>',
    38                                 'link_before' => '<span>',
    39                                 'link_after'  => '</span>',
    40                                 'pagelink'    => '<span class="screen-reader-text">' . __( 'Page', 'twentyfifteen' ) . ' </span>%',
    41                                 'separator'   => '<span class="screen-reader-text">, </span>',
    42                         ) );
     37                        wp_link_pages(
     38                                array(
     39                                        'before'      => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentyfifteen' ) . '</span>',
     40                                        'after'       => '</div>',
     41                                        'link_before' => '<span>',
     42                                        'link_after'  => '</span>',
     43                                        'pagelink'    => '<span class="screen-reader-text">' . __( 'Page', 'twentyfifteen' ) . ' </span>%',
     44                                        'separator'   => '<span class="screen-reader-text">, </span>',
     45                                )
     46                        );
    4347                ?>
    4448        </div>
     
    4751        <?php
    4852                // Author bio.
    49                 if ( is_single() && get_the_author_meta( 'description' ) ) :
    50                         get_template_part( 'author-bio' );
     53        if ( is_single() && get_the_author_meta( 'description' ) ) :
     54                get_template_part( 'author-bio' );
    5155                endif;
    5256        ?>
Note: See TracChangeset for help on using the changeset viewer.