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-admin/includes/upgrade.php

    r42210 r42228  
    885885                                                'post_mime_type' => $object->post_type,
    886886                                                'post_type' => ''),
    887                                          array( 'ID' => $object->ID ) );
     887                                        array( 'ID' => $object->ID ) );
    888888
    889889            $meta = get_post_meta($object->ID, 'imagedata', true);
     
    22502250                    // Extract type, name and columns from the definition.
    22512251                    preg_match(
    2252                           '/^'
     2252                        '/^'
    22532253                        .   '(?P<index_type>'             // 1) Type of the index.
    22542254                        .       'PRIMARY\s+KEY|(?:UNIQUE|FULLTEXT|SPATIAL)\s+(?:KEY|INDEX)|KEY|INDEX'
     
    22892289                        // Extract column name and number of indexed characters (sub_part).
    22902290                        preg_match(
    2291                               '/'
     2291                            '/'
    22922292                            .   '`?'                      // Name can be escaped with a backtick.
    22932293                            .       '(?P<column_name>'    // 1) Name of the column.
Note: See TracChangeset for help on using the changeset viewer.