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-ajax.php

    r42343 r43571  
    218218        wp_set_current_user( self::factory()->user->create( array( 'role' => 'administrator' ) ) );
    219219        $this->wp_customize->add_setting(
    220             'secret_message', array(
     220            'secret_message',
     221            array(
    221222                'capability' => 'top_secret_clearance',
    222223            )
     
    310311
    311312        $this->wp_customize->selective_refresh->add_partial(
    312             'test_blogname', array(
     313            'test_blogname',
     314            array(
    313315                'settings'        => array( 'blogname' ),
    314316                'render_callback' => array( $this, 'render_callback_blogname' ),
     
    463465
    464466        $this->wp_customize->selective_refresh->add_partial(
    465             'test_blogname', array(
     467            'test_blogname',
     468            array(
    466469                'settings'        => array( 'blogname' ),
    467470                'render_callback' => array( $this, 'render_callback_blogname' ),
     
    469472        );
    470473        $this->wp_customize->selective_refresh->add_partial(
    471             'test_blogdescription', array(
     474            'test_blogdescription',
     475            array(
    472476                'settings'        => array( 'blogdescription' ),
    473477                'render_callback' => array( $this, 'render_callback_blogdescription' ),
Note: See TracChangeset for help on using the changeset viewer.