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/inc/custom-header.php

    r42343 r43571  
    3535     */
    3636    add_theme_support(
    37         'custom-header', apply_filters(
    38             'twentyseventeen_custom_header_args', array(
     37        'custom-header',
     38        apply_filters(
     39            'twentyseventeen_custom_header_args',
     40            array(
    3941                'default-image'    => get_parent_theme_file_uri( '/assets/images/header.jpg' ),
    4042                'width'            => 2000,
     
    8082        // Has the text been hidden?
    8183        if ( 'blank' === $header_text_color ) :
    82     ?>
     84            ?>
    8385        .site-title,
    8486        .site-description {
     
    8688            clip: rect(1px, 1px, 1px, 1px);
    8789        }
    88     <?php
    89         // If the user has set a custom color for the text use that.
     90            <?php
     91            // If the user has set a custom color for the text use that.
    9092        else :
    91     ?>
     93            ?>
    9294        .site-title a,
    9395        .colors-dark .site-title a,
     
    112114    <?php endif; ?>
    113115    </style>
    114     <?php
     116        <?php
    115117    }
    116118endif; // End of twentyseventeen_header_style.
Note: See TracChangeset for help on using the changeset viewer.