WordPress.org

Make WordPress Core


Ignore:
Timestamp:
08/17/2018 01:50:26 AM (3 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-includes/class-wp-xmlrpc-server.php

    r42764 r43571  
    15561556                    if ( is_taxonomy_hierarchical( $taxonomy ) ) {
    15571557                        $tax_term_names = get_terms(
    1558                             $taxonomy, array(
     1558                            $taxonomy,
     1559                            array(
    15591560                                'fields'     => 'names',
    15601561                                'hide_empty' => false,
     
    68406841
    68416842        $commentdata = compact(
    6842             'comment_post_ID', 'comment_author', 'comment_author_url', 'comment_author_email',
    6843             'comment_content', 'comment_type', 'remote_source', 'remote_source_original'
     6843            'comment_post_ID',
     6844            'comment_author',
     6845            'comment_author_url',
     6846            'comment_author_email',
     6847            'comment_content',
     6848            'comment_type',
     6849            'remote_source',
     6850            'remote_source_original'
    68446851        );
    68456852
Note: See TracChangeset for help on using the changeset viewer.