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-signup.php

    r43326 r43571  
    112112
    113113    if ( $errmsg = $errors->get_error_message( 'blogname' ) ) {
    114     ?>
     114        ?>
    115115        <p class="error"><?php echo $errmsg; ?></p>
    116     <?php
     116        <?php
    117117    }
    118118
     
    139139    <?php if ( $errmsg = $errors->get_error_message( 'blog_title' ) ) { ?>
    140140        <p class="error"><?php echo $errmsg; ?></p>
    141     <?php
     141        <?php
    142142}
    143143    echo '<input name="blog_title" type="text" id="blog_title" value="' . esc_attr( $blog_title ) . '" />';
    144     ?>
     144?>
    145145
    146146    <?php
     
    176176            ?>
    177177        </p>
    178     <?php
     178        <?php
    179179        endif; // Languages.
    180180
     
    335335    $blogs = get_blogs_of_user( $current_user->ID );
    336336    if ( ! empty( $blogs ) ) {
    337     ?>
     337        ?>
    338338
    339339            <p><?php _e( 'Sites you are already a member of:' ); ?></p>
Note: See TracChangeset for help on using the changeset viewer.