Make WordPress Core

Changeset 53441


Ignore:
Timestamp:
05/23/2022 08:38:02 PM (2 years ago)
Author:
SergeyBiryukov
Message:

Coding Standards: Correct alignment in various files.

This fixes an Equals sign not aligned correctly WPCS warning.

Additionally, this commit sets the svn:eol-style property for the phpunit/tests/ajax/wpAjaxCropImage.php file and corrects line endings, so that the output of composer format is clean.

Follow-up to [53027], [53217], [53404].

Props hellofromTonya, SergeyBiryukov.
See #55647.

Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/site-editor.php

    r53413 r53441  
    7777$custom_settings['__experimentalAdditionalBlockPatternCategories'] = WP_Block_Pattern_Categories_Registry::get_instance()->get_all_registered( true );
    7878
    79 $editor_settings      = get_block_editor_settings( $custom_settings, $block_editor_context );
     79$editor_settings = get_block_editor_settings( $custom_settings, $block_editor_context );
    8080
    8181if ( isset( $_GET['postType'] ) && ! isset( $_GET['postId'] ) ) {
  • trunk/src/wp-includes/class-wp-block-patterns-registry.php

    r53404 r53441  
    105105            array( 'name' => $pattern_name )
    106106        );
     107
    107108        $this->registered_patterns[ $pattern_name ] = $pattern;
    108109
  • trunk/src/wp-includes/rest-api.php

    r53217 r53441  
    28712871        /** This filter is documented in wp-includes/rest-api/class-wp-rest-server.php */
    28722872        $response = apply_filters( 'rest_post_dispatch', rest_ensure_response( $response ), $server, $request );
    2873         $embed  = $request->has_param( '_embed' ) ? rest_parse_embed_param( $request['_embed'] ) : false;
    2874         $data   = (array) $server->response_to_data( $response, $embed );
     2873        $embed    = $request->has_param( '_embed' ) ? rest_parse_embed_param( $request['_embed'] ) : false;
     2874        $data     = (array) $server->response_to_data( $response, $embed );
    28752875
    28762876        if ( 'OPTIONS' === $method ) {
  • trunk/tests/phpunit/tests/ajax/wpAjaxCropImage.php

    • Property svn:eol-style set to native
Note: See TracChangeset for help on using the changeset viewer.