Make WordPress Core


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.

File:
1 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
Note: See TracChangeset for help on using the changeset viewer.