Make WordPress Core

Changeset 53197


Ignore:
Timestamp:
04/17/2022 03:05:10 PM (4 years ago)
Author:
SergeyBiryukov
Message:

Coding Standards: Correct alignment in various files.

This fixes an Array double arrow not aligned correctly WPCS warning.

Follow-up to [53075], [53084], [53091], [53094], [53155], [53129].

See #54728.

Location:
trunk/src
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/edit-form-blocks.php

    r53155 r53197  
    5858        add_query_arg(
    5959                array(
    60                         'context' => 'edit',
     60                        'context'  => 'edit',
    6161                        'per_page' => -1,
    6262                ),
    … …  
    189189
    190190$editor_settings = array(
    191         'availableTemplates'                   => $available_templates,
    192         'disablePostFormats'                   => ! current_theme_supports( 'post-formats' ),
     191        'availableTemplates'   => $available_templates,
     192        'disablePostFormats'   => ! current_theme_supports( 'post-formats' ),
    193193        /** This filter is documented in wp-admin/edit-form-advanced.php */
    194         'titlePlaceholder'                     => apply_filters( 'enter_title_here', __( 'Add title' ), $post ),
    195         'bodyPlaceholder'                      => $body_placeholder,
    196         'autosaveInterval'                     => AUTOSAVE_INTERVAL,
    197         'richEditingEnabled'                   => user_can_richedit(),
    198         'postLock'                             => $lock_details,
    199         'postLockUtils'                        => array(
     194        'titlePlaceholder'     => apply_filters( 'enter_title_here', __( 'Add title' ), $post ),
     195        'bodyPlaceholder'      => $body_placeholder,
     196        'autosaveInterval'     => AUTOSAVE_INTERVAL,
     197        'richEditingEnabled'   => user_can_richedit(),
     198        'postLock'             => $lock_details,
     199        'postLockUtils'        => array(
    200200                'nonce'       => wp_create_nonce( 'lock-post_' . $post->ID ),
    201201                'unlockNonce' => wp_create_nonce( 'update-post_' . $post->ID ),
    202202                'ajaxUrl'     => admin_url( 'admin-ajax.php' ),
    203203        ),
    204         'supportsLayout'                       => WP_Theme_JSON_Resolver::theme_has_support(),
    205         'supportsTemplateMode'                 => current_theme_supports( 'block-templates' ),
     204        'supportsLayout'       => WP_Theme_JSON_Resolver::theme_has_support(),
     205        'supportsTemplateMode' => current_theme_supports( 'block-templates' ),
    206206
    207207        // Whether or not to load the 'postcustom' meta box is stored as a user meta
    208208        // field so that we're not always loading its assets.
    209         'enableCustomFields'                   => (bool) get_user_meta( get_current_user_id(), 'enable_custom_fields', true ),
     209        'enableCustomFields'   => (bool) get_user_meta( get_current_user_id(), 'enable_custom_fields', true ),
    210210);
    211211
  • trunk/src/wp-admin/site-editor.php

    r53155 r53197  
    6262$block_editor_context = new WP_Block_Editor_Context( array( 'name' => 'core/edit-site' ) );
    6363$custom_settings      = array(
    64         'siteUrl'                              => site_url(),
    65         'postsPerPage'                         => get_option( 'posts_per_page' ),
    66         'styles'                               => get_block_editor_theme_styles(),
    67         'defaultTemplateTypes'                 => $indexed_template_types,
    68         'defaultTemplatePartAreas'             => get_allowed_block_template_part_areas(),
    69         '__unstableHomeTemplate'               => $home_template,
     64        'siteUrl'                  => site_url(),
     65        'postsPerPage'             => get_option( 'posts_per_page' ),
     66        'styles'                   => get_block_editor_theme_styles(),
     67        'defaultTemplateTypes'     => $indexed_template_types,
     68        'defaultTemplatePartAreas' => get_allowed_block_template_part_areas(),
     69        '__unstableHomeTemplate'   => $home_template,
    7070);
    7171$editor_settings      = get_block_editor_settings( $custom_settings, $block_editor_context );
  • trunk/src/wp-includes/block-template-utils.php

    r53129 r53197  
    10021002                global $wp_version;
    10031003                $theme_json_version = 'wp/' . substr( $wp_version, 0, 3 );
    1004                 $schema         = array( '$schema' => 'https://schemas.wp.org/' . $theme_json_version . '/theme.json' );
    1005                 $theme_json_raw = array_merge( $schema, $theme_json_raw );
     1004                $schema             = array( '$schema' => 'https://schemas.wp.org/' . $theme_json_version . '/theme.json' );
     1005                $theme_json_raw     = array_merge( $schema, $theme_json_raw );
    10061006        }
    10071007
  • trunk/src/wp-includes/blocks.php

    r53152 r53197  
    13631363                                        }
    13641364
    1365                                         $args       = array(
     1365                                        $args = array(
    13661366                                                'handle' => sanitize_key( "{$metadata['name']}-{$style_path}" ),
    13671367                                                'src'    => $style_uri,
  • trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-block-types-controller.php

    r53084 r53197  
    647647                                        'readonly'    => true,
    648648                                ),
    649                                 'ancestor'           => array(
     649                                'ancestor'         => array(
    650650                                        'description' => __( 'Ancestor blocks.' ),
    651651                                        'type'        => array( 'array', 'null' ),
  • trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-global-styles-controller.php

    r53075 r53197  
    582582
    583583                if ( rest_is_field_included( 'styles', $fields ) ) {
    584                         $raw_data = $theme->get_raw_data();
     584                        $raw_data       = $theme->get_raw_data();
    585585                        $data['styles'] = isset( $raw_data['styles'] ) ? $raw_data['styles'] : array();
    586586                }
Note: See TracChangeset for help on using the changeset viewer.