Make WordPress Core


Ignore:
Timestamp:
08/17/2018 01:50:26 AM (6 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.php

    r42343 r43571  
    1717    public function test_wp_delete_term_should_invalidate_cache_for_child_terms() {
    1818        register_taxonomy(
    19             'wptests_tax', 'post', array(
     19            'wptests_tax',
     20            'post',
     21            array(
    2022                'hierarchical' => true,
    2123            )
     
    195197    private function assertPostHasTerms( $post_id, $expected_term_ids, $taxonomy ) {
    196198        $assigned_term_ids = wp_get_object_terms(
    197             $post_id, $taxonomy, array(
     199            $post_id,
     200            $taxonomy,
     201            array(
    198202                'fields' => 'ids',
    199203            )
Note: See TracChangeset for help on using the changeset viewer.