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/tests/phpunit/tests/term/getTermLink.php

    r42343 r43571  
    6666    public function test_taxonomy_with_query_var_should_use_that_query_var_with_term_slug() {
    6767        register_taxonomy(
    68             'wptests_tax2', 'post', array(
     68            'wptests_tax2',
     69            'post',
     70            array(
    6971                'query_var' => 'foo',
    7072            )
     
    8486    public function test_taxonomy_without_query_var_should_use_taxonomy_query_var_and_term_query_var_with_term_slug() {
    8587        register_taxonomy(
    86             'wptests_tax2', 'post', array(
     88            'wptests_tax2',
     89            'post',
     90            array(
    8791                'query_var' => false,
    8892            )
     
    105109
    106110        register_taxonomy(
    107             'wptests_tax2', 'post', array(
     111            'wptests_tax2',
     112            'post',
     113            array(
    108114                'hierarchical' => true,
    109115                'rewrite'      => array(
     
    140146
    141147        register_taxonomy(
    142             'wptests_tax2', 'post', array(
     148            'wptests_tax2',
     149            'post',
     150            array(
    143151                'hierarchical' => true,
    144152                'rewrite'      => array(
Note: See TracChangeset for help on using the changeset viewer.