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/freedoms.php

    r42814 r43569  
    1818$is_privacy_notice = isset( $_GET['privacy-notice'] );
    1919
     20if ( $is_privacy_notice ) {
     21    $freedoms_class = '';
     22    $privacy_class  = ' nav-tab-active';
     23} else {
     24    $freedoms_class = ' nav-tab-active';
     25    $privacy_class  = '';
     26}
     27
    2028?>
    2129<div class="wrap about-wrap full-width-layout">
     
    3038    <a href="about.php" class="nav-tab"><?php _e( 'What&#8217;s New' ); ?></a>
    3139    <a href="credits.php" class="nav-tab"><?php _e( 'Credits' ); ?></a>
    32     <a href="freedoms.php" class="nav-tab<?php if ( ! $is_privacy_notice ) { echo ' nav-tab-active'; } ?>"><?php _e( 'Freedoms' ); ?></a>
    33     <a href="freedoms.php?privacy-notice" class="nav-tab<?php if ( $is_privacy_notice ) { echo ' nav-tab-active'; } ?>"><?php _e( 'Privacy' ); ?></a>
     40    <a href="freedoms.php" class="nav-tab<?php echo $freedoms_class; ?>"><?php _e( 'Freedoms' ); ?></a>
     41    <a href="freedoms.php?privacy-notice" class="nav-tab<?php echo $privacy_class; ?>"><?php _e( 'Privacy' ); ?></a>
    3442</h2>
    3543
Note: See TracChangeset for help on using the changeset viewer.