Make WordPress Core


Ignore:
Timestamp:
11/26/2017 11:56:25 PM (7 years ago)
Author:
pento
Message:

General: Fix some precision alignment formatting warnings.

The WPCS WordPress.WhiteSpace.PrecisionAlignment rule throws warnings for a bunch of code that will likely cause issues for wpcbf. Fixing these manually beforehand gives us better auto-fixed results later.

See #41057.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/compat.php

    r41178 r42228  
    473473                foreach ( array_keys( $head ) as $key ) {
    474474                    if ( isset( $key, $bref ) &&
    475                          isset( $bref[ $key ] ) && is_array( $bref[ $key ] ) &&
    476                          isset( $head[ $key ] ) && is_array( $head[ $key ] )
    477                     ) {
     475                        isset( $bref[ $key ] ) && is_array( $bref[ $key ] ) &&
     476                        isset( $head[ $key ] ) && is_array( $head[ $key ] ) ) {
     477
    478478                        $bref_stack[] = &$bref[ $key ];
    479479                        $head_stack[] = $head[ $key ];
Note: See TracChangeset for help on using the changeset viewer.