Make WordPress Core


Ignore:
Timestamp:
08/15/2018 06:22:00 AM (6 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/includes/template.php

    r43495 r43569  
    21782178<!--[if IE 8]>
    21792179<html xmlns="http://www.w3.org/1999/xhtml" class="ie8 <?php echo $admin_html_class; ?>"
    2180                                                                     <?php
    2181                                                                     /**
    2182                                                                      * Fires inside the HTML tag in the admin header.
    2183                                                                      *
    2184                                                                      * @since 2.2.0
    2185                                                                      */
    2186                                                                     do_action( 'admin_xml_ns' );
    2187 ?>
    2188     <?php language_attributes(); ?>>
     2180    <?php
     2181    /**
     2182     * Fires inside the HTML tag in the admin header.
     2183     *
     2184     * @since 2.2.0
     2185     */
     2186    do_action( 'admin_xml_ns' );
     2187
     2188    language_attributes();
     2189    ?>
     2190    >
    21892191<![endif]-->
    21902192<!--[if !(IE 8) ]><!-->
    21912193<html xmlns="http://www.w3.org/1999/xhtml" class="<?php echo $admin_html_class; ?>"
    2192                                                                 <?php
    2193                                                                 /** This action is documented in wp-admin/includes/template.php */
    2194                                                                 do_action( 'admin_xml_ns' );
    2195 ?>
    2196     <?php language_attributes(); ?>>
     2194    <?php
     2195    /** This action is documented in wp-admin/includes/template.php */
     2196    do_action( 'admin_xml_ns' );
     2197
     2198    language_attributes();
     2199    ?>
     2200    >
    21972201<!--<![endif]-->
    21982202<head>
Note: See TracChangeset for help on using the changeset viewer.