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/src/wp-content/themes/twentyfourteen/inc/customizer.php

    r42343 r43571  
    2323    if ( isset( $wp_customize->selective_refresh ) ) {
    2424        $wp_customize->selective_refresh->add_partial(
    25             'blogname', array(
     25            'blogname',
     26            array(
    2627                'selector'            => '.site-title a',
    2728                'container_inclusive' => false,
     
    3031        );
    3132        $wp_customize->selective_refresh->add_partial(
    32             'blogdescription', array(
     33            'blogdescription',
     34            array(
    3335                'selector'            => '.site-description',
    3436                'container_inclusive' => false,
     
    5557    // Add the featured content section in case it's not already there.
    5658    $wp_customize->add_section(
    57         'featured_content', array(
     59        'featured_content',
     60        array(
    5861            'title'           => __( 'Featured Content', 'twentyfourteen' ),
    5962            'description'     => sprintf(
     
    6972    // Add the featured content layout setting and control.
    7073    $wp_customize->add_setting(
    71         'featured_content_layout', array(
     74        'featured_content_layout',
     75        array(
    7276            'default'           => 'grid',
    7377            'sanitize_callback' => 'twentyfourteen_sanitize_layout',
     
    7680
    7781    $wp_customize->add_control(
    78         'featured_content_layout', array(
     82        'featured_content_layout',
     83        array(
    7984            'label'   => __( 'Layout', 'twentyfourteen' ),
    8085            'section' => 'featured_content',
Note: See TracChangeset for help on using the changeset viewer.