Make WordPress Core


Ignore:
Timestamp:
12/07/2021 10:48:54 PM (5 years ago)
Author:
audrasjb
Message:

Coding Standards: Correct alignment in blocks.php and class-wp-rest-templates-controller.

See #53359.

File:
1 edited

Legend:

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

    r52291 r52345  
    104104        }
    105105        // Path needs to be normalized to work in Windows env.
    106         $wpinc_path_norm     = wp_normalize_path( ABSPATH . WPINC );
    107         $script_path_norm    = wp_normalize_path( realpath( dirname( $metadata['file'] ) . '/' . $script_path ) );
    108         $is_core_block       = isset( $metadata['file'] ) && 0 === strpos( $metadata['file'], $wpinc_path_norm );
     106        $wpinc_path_norm  = wp_normalize_path( ABSPATH . WPINC );
     107        $script_path_norm = wp_normalize_path( realpath( dirname( $metadata['file'] ) . '/' . $script_path ) );
     108        $is_core_block    = isset( $metadata['file'] ) && 0 === strpos( $metadata['file'], $wpinc_path_norm );
    109109
    110110        $script_uri          = $is_core_block ?
Note: See TracChangeset for help on using the changeset viewer.