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-admin/includes/class-wp-links-list-table.php

    r42343 r43571  
    101101            return;
    102102        }
    103 ?>
     103        ?>
    104104        <div class="alignleft actions">
    105 <?php
     105        <?php
    106106            $dropdown_options = array(
    107107                'selected'        => $cat_id,
     
    118118            wp_dropdown_categories( $dropdown_options );
    119119            submit_button( __( 'Filter' ), '', 'filter_action', false, array( 'id' => 'post-query-submit' ) );
    120 ?>
     120        ?>
    121121        </div>
    122 <?php
     122        <?php
    123123    }
    124124
     
    294294            $link->link_name     = esc_attr( $link->link_name );
    295295            $link->link_category = wp_get_link_cats( $link->link_id );
    296 ?>
     296            ?>
    297297        <tr id="link-<?php echo $link->link_id; ?>">
    298298            <?php $this->single_row_columns( $link ); ?>
    299299        </tr>
    300 <?php
     300            <?php
    301301        }
    302302    }
Note: See TracChangeset for help on using the changeset viewer.