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/twentyseventeen/template-parts/post/content-excerpt.php

    r40472 r42343  
    3131        <?php endif; ?>
    3232
    33         <?php if ( is_front_page() && ! is_home() ) {
     33        <?php
     34        if ( is_front_page() && ! is_home() ) {
    3435
    3536            // The excerpt is being displayed within a front page section, so it's a lower hierarchy than h2.
     
    3738        } else {
    3839            the_title( sprintf( '<h2 class="entry-title"><a href="%s" rel="bookmark">', esc_url( get_permalink() ) ), '</a></h2>' );
    39         } ?>
     40        }
     41        ?>
    4042    </header><!-- .entry-header -->
    4143
Note: See TracChangeset for help on using the changeset viewer.