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/theme-editor.php

    r43569 r43571  
    178178        $description .= ' <span>(' . esc_html( $file_show ) . ')</span>';
    179179    }
    180 ?>
     180    ?>
    181181<div class="wrap">
    182182<h1><?php echo esc_html( $title ); ?></h1>
     
    272272    echo '<div class="error"><p>' . __( 'Oops, no such file exists! Double check the name and try again, merci.' ) . '</p></div>';
    273273else :
    274 ?>
     274    ?>
    275275    <form name="template" id="template" action="theme-editor.php" method="post">
    276276        <?php wp_nonce_field( 'edit-theme_' . $stylesheet . '_' . $relative_file, 'nonce' ); ?>
     
    297297                        <?php
    298298                        if ( is_writeable( $file ) ) {
    299                         ?>
     299                            ?>
    300300                        <strong><?php _e( 'Caution:' ); ?></strong><?php } ?>
    301301                        <?php _e( 'This is a file in your current parent theme.' ); ?>
     
    315315    <?php wp_print_file_editor_templates(); ?>
    316316    </form>
    317 <?php
     317    <?php
    318318endif; // $error
    319319?>
     
    332332        $return_url = admin_url( '/' );
    333333    }
    334 ?>
     334    ?>
    335335<div id="file-editor-warning" class="notification-dialog-wrap file-editor-warning hide-if-no-js hidden">
    336336    <div class="notification-dialog-background"></div>
     
    357357    </div>
    358358</div>
    359 <?php
     359    <?php
    360360endif; // editor warning notice
    361361
Note: See TracChangeset for help on using the changeset viewer.