WordPress.org

Make WordPress Core


Ignore:
Timestamp:
08/17/2018 01:50:26 AM (3 years ago)
Author:
pento
Message:

Coding Standards: Upgrade WPCS to 1.0.0

WPCS 1.0.0 includes a bunch of new auto-fixers, which drops the number of coding standards issues across WordPress significantly. Prior to running the auto-fixers, there were 15,312 issues detected. With this commit, we now drop to 4,769 issues.

This change includes three notable additions:

  • Multiline function calls must now put each parameter on a new line.
  • Auto-formatting files is now part of the grunt precommit script.
  • Auto-fixable coding standards issues will now cause Travis failures.

Fixes #44600.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentyfifteen/inc/template-tags.php

    r42343 r43571  
    1919        // Are there comments to navigate through?
    2020        if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) :
    21         ?>
     21            ?>
    2222        <nav class="navigation comment-navigation" role="navigation">
    2323        <h2 class="screen-reader-text"><?php _e( 'Comment navigation', 'twentyfifteen' ); ?></h2>
     
    3434            </div><!-- .nav-links -->
    3535        </nav><!-- .comment-navigation -->
    36         <?php
     36            <?php
    3737        endif;
    3838    }
     
    196196
    197197        if ( is_singular() ) :
    198         ?>
     198            ?>
    199199
    200200        <div class="post-thumbnail">
    201         <?php the_post_thumbnail(); ?>
     201            <?php the_post_thumbnail(); ?>
    202202    </div><!-- .post-thumbnail -->
    203203
Note: See TracChangeset for help on using the changeset viewer.