Make WordPress Core


Ignore:
Timestamp:
08/17/2018 01:50:26 AM (7 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/edit-form-comment.php

    r43290 r43571  
    2727if ( 'approved' === wp_get_comment_status( $comment ) && $comment->comment_post_ID > 0 ) :
    2828    $comment_link = get_comment_link( $comment );
    29 ?>
     29    ?>
    3030<div class="inside">
    3131    <div id="comment-link-box">
     
    7373    $quicktags_settings = array( 'buttons' => 'strong,em,link,block,del,ins,img,ul,ol,li,code,close' );
    7474    wp_editor(
    75         $comment->comment_content, 'content', array(
     75        $comment->comment_content,
     76        'content',
     77        array(
    7678            'media_buttons' => false,
    7779            'tinymce'       => false,
     
    147149        $parent_link = esc_url( get_comment_link( $parent ) );
    148150        $name        = get_comment_author( $parent );
    149     ?>
     151        ?>
    150152    <div class="misc-pub-section misc-pub-reply-to">
    151153        <?php
     
    157159        ?>
    158160    </div>
    159 <?php
     161        <?php
    160162endif;
    161163endif;
     
    227229try{document.post.name.focus();}catch(e){}
    228230</script>
    229 <?php
     231    <?php
    230232endif;
Note: See TracChangeset for help on using the changeset viewer.