WordPress.org

Make WordPress Core


Ignore:
Timestamp:
08/15/2018 06:22:00 AM (3 years ago)
Author:
pento
Message:

Coding Standards: Prepare for upgrading WPCS to 1.0.0.

In order to get the best result when running phpcbf across the codebase, there are some manual tweaks we need to make.

These fall into three categories:

  • Fixing incorrectly indented code which has flow-on effects when auto-fixing.
  • Tweaking the layout of inline PHP inside HTML tags.
  • Moving more complex inline PHP inside HTML tags, to execute earlier.

See #44600.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/network/site-info.php

    r42343 r43569  
    194194            <legend class="screen-reader-text"><?php _e( 'Set site attributes' ); ?></legend>
    195195            <?php foreach ( $attribute_fields as $field_key => $field_label ) : ?>
    196                 <label><input type="checkbox" name="blog[<?php echo $field_key; ?>]" value="1"
    197                                                                     <?php
    198                                                                     checked( (bool) $details->$field_key, true );
    199                                                                     disabled( ! in_array( $details->$field_key, array( 0, 1 ) ) );
    200 ?>
    201  />
     196                <label><input type="checkbox" name="blog[<?php echo $field_key; ?>]" value="1" <?php checked( (bool) $details->$field_key, true ); ?> <?php disabled( ! in_array( $details->$field_key, array( 0, 1 ) ) ); ?> />
    202197                <?php echo $field_label; ?></label><br/>
    203198            <?php endforeach; ?>
Note: See TracChangeset for help on using the changeset viewer.