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-admin/includes/class-wp-automatic-updater.php

    r42825 r43571  
    337337        // Boom, This sites about to get a whole new splash of paint!
    338338        $upgrade_result = $upgrader->upgrade(
    339             $upgrader_item, array(
     339            $upgrader_item,
     340            array(
    340341                'clear_update_cache'           => false,
    341342                // Always use partial builds if possible for core updates.
     
    575576
    576577        update_site_option(
    577             'auto_core_update_failed', array(
     578            'auto_core_update_failed',
     579            array(
    578580                'attempted'  => $core_update->current,
    579581                'current'    => $wp_version,
     
    601603    protected function send_email( $type, $core_update, $result = null ) {
    602604        update_site_option(
    603             'auto_core_update_notified', array(
     605            'auto_core_update_notified',
     606            array(
    604607                'type'      => $type,
    605608                'email'     => get_site_option( 'admin_email' ),
Note: See TracChangeset for help on using the changeset viewer.