Make WordPress Core


Ignore:
Timestamp:
08/17/2018 01:50:26 AM (8 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/twentythirteen/functions.php

    r42343 r43571  
    8585         */
    8686        add_theme_support(
    87                 'html5', array(
     87                'html5',
     88                array(
    8889                        'search-form',
    8990                        'comment-form',
     
    99100         */
    100101        add_theme_support(
    101                 'post-formats', array(
     102                'post-formats',
     103                array(
    102104                        'aside',
    103105                        'audio',
     
    335337                </div><!-- .nav-links -->
    336338        </nav><!-- .navigation -->
    337         <?php
     339                <?php
    338340        }
    339341endif;
     
    365367                </div><!-- .nav-links -->
    366368        </nav><!-- .navigation -->
    367         <?php
     369                <?php
    368370        }
    369371endif;
     
    612614        if ( isset( $wp_customize->selective_refresh ) ) {
    613615                $wp_customize->selective_refresh->add_partial(
    614                         'blogname', array(
     616                        'blogname',
     617                        array(
    615618                                'selector'            => '.site-title',
    616619                                'container_inclusive' => false,
     
    619622                );
    620623                $wp_customize->selective_refresh->add_partial(
    621                         'blogdescription', array(
     624                        'blogdescription',
     625                        array(
    622626                                'selector'            => '.site-description',
    623627                                'container_inclusive' => false,
Note: See TracChangeset for help on using the changeset viewer.