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/ms.php

    r43548 r43571  
    962962 */
    963963function _thickbox_path_admin_subfolder() {
    964 ?>
     964    ?>
    965965<script type="text/javascript">
    966966var tb_pathToImage = "<?php echo includes_url( 'js/thickbox/loadingAnimation.gif', 'relative' ); ?>";
    967967</script>
    968 <?php
     968    <?php
    969969}
    970970
     
    10661066            <?php } ?>
    10671067            </tr>
    1068         <?php
     1068            <?php
    10691069        }
    10701070    }
     
    10771077
    10781078    if ( 1 == count( $users ) ) :
    1079     ?>
     1079        ?>
    10801080        <p><?php _e( 'Once you hit &#8220;Confirm Deletion&#8221;, the user will be permanently removed.' ); ?></p>
    10811081    <?php else : ?>
     
    10851085
    10861086    submit_button( __( 'Confirm Deletion' ), 'primary' );
    1087     ?>
     1087?>
    10881088    </form>
    10891089    <?php
     
    10971097 */
    10981098function network_settings_add_js() {
    1099 ?>
     1099    ?>
    11001100<script type="text/javascript">
    11011101jQuery(document).ready( function($) {
     
    11101110});
    11111111</script>
    1112 <?php
     1112    <?php
    11131113}
    11141114
     
    11481148     */
    11491149    $links = apply_filters(
    1150         'network_edit_site_nav_links', array(
     1150        'network_edit_site_nav_links',
     1151        array(
    11511152            'site-info'     => array(
    11521153                'label' => __( 'Info' ),
     
    11741175    // Parse arguments
    11751176    $r = wp_parse_args(
    1176         $args, array(
     1177        $args,
     1178        array(
    11771179            'blog_id'  => isset( $_GET['blog_id'] ) ? (int) $_GET['blog_id'] : 0,
    11781180            'links'    => $links,
Note: See TracChangeset for help on using the changeset viewer.