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/customize/selective-refresh.php

    r42343 r43571  
    144144        $user->remove_cap( 'top_secret_clearance' );
    145145        $this->wp_customize->add_setting(
    146             'top_secret_message', array(
     146            'top_secret_message',
     147            array(
    147148                'capability' => 'top_secret_clearance', // The administrator role lacks this.
    148149            )
    149150        );
    150151        $this->selective_refresh->add_partial(
    151             'blogname', array(
     152            'blogname',
     153            array(
    152154                'selector' => '#site-title',
    153155            )
    154156        );
    155157        $this->selective_refresh->add_partial(
    156             'top_secret_message', array(
     158            'top_secret_message',
     159            array(
    157160                'settings' => array( 'top_secret_message' ),
    158161            )
Note: See TracChangeset for help on using the changeset viewer.