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

    r42343 r43571  
    6666                                /* translators: %s: importer slug */
    6767                                printf( __( 'The %s importer is invalid or is not installed.' ), '<strong>' . esc_html( $_GET['invalid'] ) . '</strong>' );
    68         ?>
     68                                ?>
    6969        </p>
    7070    </div>
     
    9797} else {
    9898    uasort( $importers, '_usort_by_first_member' );
    99 ?>
     99    ?>
    100100<table class="widefat importers striped">
    101101
     
    120120                                'plugin' => $plugin_file,
    121121                                'from'   => 'import',
    122                             ), admin_url( 'plugins.php' )
    123                         ), 'activate-plugin_' . $plugin_file
     122                            ),
     123                            admin_url( 'plugins.php' )
     124                        ),
     125                        'activate-plugin_' . $plugin_file
    124126                    );
    125127                    $action      = sprintf(
     
    143145                                'plugin' => $plugin_slug,
    144146                                'from'   => 'import',
    145                             ), self_admin_url( 'update.php' )
    146                         ), 'install-plugin_' . $plugin_slug
     147                            ),
     148                            self_admin_url( 'update.php' )
     149                        ),
     150                        'install-plugin_' . $plugin_slug
    147151                    );
    148152                    $action = sprintf(
     
    167171                array(
    168172                    'import' => $importer_id,
    169                 ), self_admin_url( 'admin.php' )
     173                ),
     174                self_admin_url( 'admin.php' )
    170175            );
    171176            $action = sprintf(
     
    189194                    'width'     => 600,
    190195                    'height'    => 550,
    191                 ), network_admin_url( 'plugin-install.php' )
     196                ),
     197                network_admin_url( 'plugin-install.php' )
    192198            );
    193199            $action .= sprintf(
     
    213219    ?>
    214220</table>
    215 <?php
     221    <?php
    216222}
    217223
Note: See TracChangeset for help on using the changeset viewer.