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/twentyseventeen/functions.php

    r42343 r43571  
    7272     */
    7373    add_theme_support(
    74         'html5', array(
     74        'html5',
     75        array(
    7576            'comment-form',
    7677            'comment-list',
     
    8687     */
    8788    add_theme_support(
    88         'post-formats', array(
     89        'post-formats',
     90        array(
    8991            'aside',
    9092            'image',
     
    99101    // Add theme support for Custom Logo.
    100102    add_theme_support(
    101         'custom-logo', array(
     103        'custom-logo',
     104        array(
    102105            'width'      => 250,
    103106            'height'     => 250,
     
    419422        $customize_preview_data_hue = 'data-hue="' . $hue . '"';
    420423    }
    421 ?>
     424    ?>
    422425    <style type="text/css" id="custom-theme-colors" <?php echo $customize_preview_data_hue; ?>>
    423426        <?php echo twentyseventeen_custom_colors_css(); ?>
    424427    </style>
    425 <?php
     428    <?php
    426429}
    427430add_action( 'wp_head', 'twentyseventeen_colors_css_wrap' );
Note: See TracChangeset for help on using the changeset viewer.