Make WordPress Core

Changeset 52345


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

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

See #53359.

Location:
trunk/src/wp-includes
Files:
2 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 ?
  • trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-templates-controller.php

    r52332 r52345  
    343343     */
    344344    public function create_item( $request ) {
    345         $prepared_post            = $this->prepare_item_for_database( $request );
     345        $prepared_post = $this->prepare_item_for_database( $request );
    346346
    347347        if ( is_wp_error( $prepared_post ) ) {
     
    858858                    'readonly'    => true,
    859859                ),
    860                 'author' => array(
     860                'author'         => array(
    861861                    'description' => __( 'The ID for the author of the template.' ),
    862862                    'type'        => 'integer',
Note: See TracChangeset for help on using the changeset viewer.