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

    r42201 r42228  
    597597
    598598    if ( empty( $_REQUEST['_thumbnail_id'] ) ||
    599          empty( $_REQUEST['preview_id'] ) ||
    600          $post->ID != $post_id ||
    601          '_thumbnail_id' != $meta_key ||
    602          'revision' == $post->post_type ||
    603          $post_id != $_REQUEST['preview_id']
    604     ) {
     599        empty( $_REQUEST['preview_id'] ) ||
     600        $post->ID != $post_id ||
     601        '_thumbnail_id' != $meta_key ||
     602        'revision' == $post->post_type ||
     603        $post_id != $_REQUEST['preview_id'] ) {
     604
    605605        return $value;
    606606    }
Note: See TracChangeset for help on using the changeset viewer.