Make WordPress Core


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

    r42679 r43569  
    436436        </ul><!-- .posttype-tabs -->
    437437
    438         <div id="tabs-panel-posttype-<?php echo $post_type_name; ?>-most-recent" class="tabs-panel
    439                                                 <?php
    440                                                 echo ( 'most-recent' == $current_tab ? 'tabs-panel-active' : 'tabs-panel-inactive' );
    441         ?>
    442         ">
     438        <div id="tabs-panel-posttype-<?php echo $post_type_name; ?>-most-recent" class="tabs-panel <?php echo ( 'most-recent' == $current_tab ? 'tabs-panel-active' : 'tabs-panel-inactive' ); ?>">
    443439            <ul id="<?php echo $post_type_name; ?>checklist-most-recent" class="categorychecklist form-no-clear">
    444440                <?php
     
    474470        </div><!-- /.tabs-panel -->
    475471
    476         <div class="tabs-panel
    477         <?php
    478             echo ( 'search' == $current_tab ? 'tabs-panel-active' : 'tabs-panel-inactive' );
    479         ?>
    480         " id="tabs-panel-posttype-<?php echo $post_type_name; ?>-search">
     472        <div class="tabs-panel <?php echo ( 'search' == $current_tab ? 'tabs-panel-active' : 'tabs-panel-inactive' ); ?>" id="tabs-panel-posttype-<?php echo $post_type_name; ?>-search">
    481473            <?php
    482474            if ( isset( $_REQUEST[ 'quick-search-posttype-' . $post_type_name ] ) ) {
     
    516508        </div><!-- /.tabs-panel -->
    517509
    518         <div id="<?php echo $post_type_name; ?>-all" class="tabs-panel tabs-panel-view-all
    519                             <?php
    520                             echo ( 'all' == $current_tab ? 'tabs-panel-active' : 'tabs-panel-inactive' );
    521         ?>
    522         ">
     510        <div id="<?php echo $post_type_name; ?>-all" class="tabs-panel tabs-panel-view-all <?php echo ( 'all' == $current_tab ? 'tabs-panel-active' : 'tabs-panel-inactive' ); ?>">
    523511            <?php if ( ! empty( $page_links ) ) : ?>
    524512                <div class="add-menu-item-pagelinks">
     
    772760        </ul><!-- .taxonomy-tabs -->
    773761
    774         <div id="tabs-panel-<?php echo $taxonomy_name; ?>-pop" class="tabs-panel
    775                                         <?php
    776                                         echo ( 'most-used' == $current_tab ? 'tabs-panel-active' : 'tabs-panel-inactive' );
    777         ?>
    778         ">
     762        <div id="tabs-panel-<?php echo $taxonomy_name; ?>-pop" class="tabs-panel <?php echo ( 'most-used' == $current_tab ? 'tabs-panel-active' : 'tabs-panel-inactive' ); ?> ">
    779763            <ul id="<?php echo $taxonomy_name; ?>checklist-pop" class="categorychecklist form-no-clear" >
    780764                <?php
     
    793777        </div><!-- /.tabs-panel -->
    794778
    795         <div id="tabs-panel-<?php echo $taxonomy_name; ?>-all" class="tabs-panel tabs-panel-view-all
    796                                         <?php
    797                                         echo ( 'all' == $current_tab ? 'tabs-panel-active' : 'tabs-panel-inactive' );
    798         ?>
    799         ">
     779        <div id="tabs-panel-<?php echo $taxonomy_name; ?>-all" class="tabs-panel tabs-panel-view-all <?php echo ( 'all' == $current_tab ? 'tabs-panel-active' : 'tabs-panel-inactive' ); ?> ">
    800780            <?php if ( ! empty( $page_links ) ) : ?>
    801781                <div class="add-menu-item-pagelinks">
     
    816796        </div><!-- /.tabs-panel -->
    817797
    818         <div class="tabs-panel
    819         <?php
    820             echo ( 'search' == $current_tab ? 'tabs-panel-active' : 'tabs-panel-inactive' );
    821         ?>
    822         " id="tabs-panel-search-taxonomy-<?php echo $taxonomy_name; ?>">
     798        <div class="tabs-panel <?php echo ( 'search' == $current_tab ? 'tabs-panel-active' : 'tabs-panel-inactive' ); ?>" id="tabs-panel-search-taxonomy-<?php echo $taxonomy_name; ?>">
    823799            <?php
    824800            if ( isset( $_REQUEST[ 'quick-search-taxonomy-' . $taxonomy_name ] ) ) {
Note: See TracChangeset for help on using the changeset viewer.