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-admin/options.php

    r43531 r43571  
    8181}
    8282
    83 $whitelist_options = array(
    84         'general' => array(
     83$whitelist_options         = array(
     84        'general'    => array(
    8585                'blogname',
    8686                'blogdescription',
     
    119119                'show_comments_cookies_opt_in',
    120120        ),
    121         'media' => array(
     121        'media'      => array(
    122122                'thumbnail_size_w',
    123123                'thumbnail_size_h',
     
    131131                'image_default_link_type',
    132132        ),
    133         'reading' => array(
     133        'reading'    => array(
    134134                'posts_per_page',
    135135                'posts_per_rss',
     
    140140                'blog_public',
    141141        ),
    142         'writing' => array(
     142        'writing'    => array(
    143143                'default_category',
    144144                'default_email_category',
     
    262262                        if ( $unregistered ) {
    263263                                _deprecated_argument(
    264                                         'options.php', '2.7.0',
     264                                        'options.php',
     265                                        '2.7.0',
    265266                                        sprintf(
    266267                                                /* translators: %s: the option/setting */
Note: See TracChangeset for help on using the changeset viewer.