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

    r30796 r42343  
    2222                        endif;
    2323
    24                         if ( is_single() ) :
    25                                 the_title( '<h1 class="entry-title">', '</h1>' );
     24if ( is_single() ) :
     25        the_title( '<h1 class="entry-title">', '</h1>' );
    2626                        else :
    2727                                the_title( '<h1 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h1>' );
    … …  
    3131                <div class="entry-meta">
    3232                        <?php
    33                                 if ( 'post' == get_post_type() )
    34                                         twentyfourteen_posted_on();
     33                        if ( 'post' == get_post_type() ) {
     34                                twentyfourteen_posted_on();
     35                        }
    3536
    36                                 if ( ! post_password_required() && ( comments_open() || get_comments_number() ) ) :
     37                        if ( ! post_password_required() && ( comments_open() || get_comments_number() ) ) :
    3738                        ?>
    3839                        <span class="comments-link"><?php comments_popup_link( __( 'Leave a comment', 'twentyfourteen' ), __( '1 Comment', 'twentyfourteen' ), __( '% Comments', 'twentyfourteen' ) ); ?></span>
    … …  
    5354                <?php
    5455                        /* translators: %s: Name of current post */
    55                         the_content( sprintf(
    56                                 __( 'Continue reading %s <span class="meta-nav">&rarr;</span>', 'twentyfourteen' ),
    57                                 the_title( '<span class="screen-reader-text">', '</span>', false )
    58                         ) );
     56                        the_content(
     57                                sprintf(
     58                                        __( 'Continue reading %s <span class="meta-nav">&rarr;</span>', 'twentyfourteen' ),
     59                                        the_title( '<span class="screen-reader-text">', '</span>', false )
     60                                )
     61                        );
    5962
    60                         wp_link_pages( array(
    61                                 'before'      => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentyfourteen' ) . '</span>',
    62                                 'after'       => '</div>',
    63                                 'link_before' => '<span>',
    64                                 'link_after'  => '</span>',
    65                         ) );
     63                        wp_link_pages(
     64                                array(
     65                                        'before'      => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentyfourteen' ) . '</span>',
     66                                        'after'       => '</div>',
     67                                        'link_before' => '<span>',
     68                                        'link_after'  => '</span>',
     69                                )
     70                        );
    6671                ?>
    6772        </div><!-- .entry-content -->
Note: See TracChangeset for help on using the changeset viewer.