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

    r42227 r42228  
    36313631    // Passed post category list overwrites existing category list if not empty.
    36323632    if ( isset($postarr['post_category']) && is_array($postarr['post_category'])
    3633              && 0 != count($postarr['post_category']) )
     3633            && 0 != count($postarr['post_category']) )
    36343634        $post_cats = $postarr['post_category'];
    36353635    else
     
    36383638    // Drafts shouldn't be assigned a date unless explicitly done so by the user.
    36393639    if ( isset( $post['post_status'] ) && in_array($post['post_status'], array('draft', 'pending', 'auto-draft')) && empty($postarr['edit_date']) &&
    3640              ('0000-00-00 00:00:00' == $post['post_date_gmt']) )
     3640            ('0000-00-00 00:00:00' == $post['post_date_gmt']) )
    36413641        $clear_date = true;
    36423642    else
Note: See TracChangeset for help on using the changeset viewer.