Make WordPress Core


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

    r36913 r42343  
    3232                    twentyfifteen_the_custom_logo();
    3333
    34                     if ( is_front_page() && is_home() ) : ?>
     34                if ( is_front_page() && is_home() ) :
     35                    ?>
    3536                        <h1 class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></h1>
    3637                    <?php else : ?>
    3738                        <p class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></p>
    38                     <?php endif;
     39                    <?php
     40                    endif;
    3941
    4042                    $description = get_bloginfo( 'description', 'display' );
    41                     if ( $description || is_customize_preview() ) : ?>
     43if ( $description || is_customize_preview() ) :
     44                    ?>
    4245                        <p class="site-description"><?php echo $description; ?></p>
    43                     <?php endif;
     46                    <?php
     47                    endif;
    4448                ?>
    4549                <button class="secondary-toggle"><?php _e( 'Menu and widgets', 'twentyfifteen' ); ?></button>
Note: See TracChangeset for help on using the changeset viewer.