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

    r25625 r42343  
    3434        <div class="entry-content">
    3535            <?php the_content( __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'twentyeleven' ) ); ?>
    36             <?php wp_link_pages( array( 'before' => '<div class="page-link"><span>' . __( 'Pages:', 'twentyeleven' ) . '</span>', 'after' => '</div>' ) ); ?>
     36            <?php
     37            wp_link_pages(
     38                array(
     39                    'before' => '<div class="page-link"><span>' . __( 'Pages:', 'twentyeleven' ) . '</span>',
     40                    'after'  => '</div>',
     41                )
     42            );
     43?>
    3744        </div><!-- .entry-content -->
    3845        <?php endif; ?>
     
    4350                /* translators: used between list items, there is a space after the comma */
    4451                $categories_list = get_the_category_list( __( ', ', 'twentyeleven' ) );
    45                 if ( $categories_list ):
     52            if ( $categories_list ) :
    4653            ?>
    4754            <span class="cat-links">
    48                 <?php printf( __( '<span class="%1$s">Posted in</span> %2$s', 'twentyeleven' ), 'entry-utility-prep entry-utility-prep-cat-links', $categories_list );
    49                 $show_sep = true; ?>
     55            <?php
     56                printf( __( '<span class="%1$s">Posted in</span> %2$s', 'twentyeleven' ), 'entry-utility-prep entry-utility-prep-cat-links', $categories_list );
     57            $show_sep = true;
     58                ?>
    5059            </span>
    5160            <?php endif; // End if categories ?>
     
    5362                /* translators: used between list items, there is a space after the comma */
    5463                $tags_list = get_the_tag_list( '', __( ', ', 'twentyeleven' ) );
    55                 if ( $tags_list ):
    56                 if ( $show_sep ) : ?>
     64            if ( $tags_list ) :
     65                if ( $show_sep ) :
     66                ?>
    5767            <span class="sep"> | </span>
    5868                <?php endif; // End if $show_sep ?>
    5969            <span class="tag-links">
    60                 <?php printf( __( '<span class="%1$s">Tagged</span> %2$s', 'twentyeleven' ), 'entry-utility-prep entry-utility-prep-tag-links', $tags_list );
    61                 $show_sep = true; ?>
     70                <?php
     71                printf( __( '<span class="%1$s">Tagged</span> %2$s', 'twentyeleven' ), 'entry-utility-prep entry-utility-prep-tag-links', $tags_list );
     72                $show_sep = true;
     73                ?>
    6274            </span>
    6375            <?php endif; // End if $tags_list ?>
Note: See TracChangeset for help on using the changeset viewer.