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/post/revisions.php

    r42343 r43571  
    323323    function test_revision_view_caps_cpt() {
    324324        register_post_type(
    325             $this->post_type, array(
     325            $this->post_type,
     326            array(
    326327                'capability_type' => 'event',
    327328                'map_meta_cap'    => true,
     
    364365    function test_revision_restore_caps_cpt() {
    365366        register_post_type(
    366             $this->post_type, array(
     367            $this->post_type,
     368            array(
    367369                'capability_type' => 'event',
    368370                'map_meta_cap'    => true,
     
    409411    function test_revision_restore_caps_before_publish() {
    410412        register_post_type(
    411             $this->post_type, array(
     413            $this->post_type,
     414            array(
    412415                'capability_type' => 'post',
    413416                'capabilities'    => array(
     
    468471    function test_revision_diff_caps_cpt() {
    469472        register_post_type(
    470             $this->post_type, array(
     473            $this->post_type,
     474            array(
    471475                'capability_type' => 'event',
    472476                'map_meta_cap'    => true,
Note: See TracChangeset for help on using the changeset viewer.