Make WordPress Core

Changeset 57771


Ignore:
Timestamp:
03/05/2024 06:53:44 AM (12 months ago)
Author:
desrosj
Message:

Coding standards: Apply some changes after composer format.

Follow up to [57565], [57627], [57755],

See #60233, #60506, #60524.

Location:
trunk/src/wp-includes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/block-template-utils.php

    r57644 r57771  
    14641464    wp_update_post(
    14651465        array(
    1466             'ID'            => $post->ID,
    1467             'post_content'  => $content,
     1466            'ID'           => $post->ID,
     1467            'post_content' => $content,
    14681468        )
    14691469    );
  • trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-block-types-controller.php

    r57565 r57771  
    471471            'type'       => 'object',
    472472            'properties' => array(
    473                 'api_version'           => array(
     473                'api_version'            => array(
    474474                    'description' => __( 'Version of block API.' ),
    475475                    'type'        => 'integer',
     
    478478                    'readonly'    => true,
    479479                ),
    480                 'title'                 => array(
     480                'title'                  => array(
    481481                    'description' => __( 'Title of block type.' ),
    482482                    'type'        => 'string',
     
    485485                    'readonly'    => true,
    486486                ),
    487                 'name'                  => array(
     487                'name'                   => array(
    488488                    'description' => __( 'Unique name identifying the block type.' ),
    489489                    'type'        => 'string',
     
    493493                    'readonly'    => true,
    494494                ),
    495                 'description'           => array(
     495                'description'            => array(
    496496                    'description' => __( 'Description of block type.' ),
    497497                    'type'        => 'string',
     
    500500                    'readonly'    => true,
    501501                ),
    502                 'icon'                  => $icon_definition,
    503                 'attributes'            => array(
     502                'icon'                   => $icon_definition,
     503                'attributes'             => array(
    504504                    'description'          => __( 'Block attributes.' ),
    505505                    'type'                 => array( 'object', 'null' ),
     
    512512                    'readonly'             => true,
    513513                ),
    514                 'provides_context'      => array(
     514                'provides_context'       => array(
    515515                    'description'          => __( 'Context provided by blocks of this type.' ),
    516516                    'type'                 => 'object',
     
    523523                    'readonly'             => true,
    524524                ),
    525                 'uses_context'          => array(
     525                'uses_context'           => array(
    526526                    'description' => __( 'Context values inherited by blocks of this type.' ),
    527527                    'type'        => 'array',
     
    533533                    'readonly'    => true,
    534534                ),
    535                 'selectors'             => array(
     535                'selectors'              => array(
    536536                    'description' => __( 'Custom CSS selectors.' ),
    537537                    'type'        => 'object',
     
    541541                    'readonly'    => true,
    542542                ),
    543                 'supports'              => array(
     543                'supports'               => array(
    544544                    'description' => __( 'Block supports.' ),
    545545                    'type'        => 'object',
     
    549549                    'readonly'    => true,
    550550                ),
    551                 'category'              => $category_definition,
    552                 'is_dynamic'            => array(
     551                'category'               => $category_definition,
     552                'is_dynamic'             => array(
    553553                    'description' => __( 'Is the block dynamically rendered.' ),
    554554                    'type'        => 'boolean',
     
    557557                    'readonly'    => true,
    558558                ),
    559                 'editor_script_handles' => array(
     559                'editor_script_handles'  => array(
    560560                    'description' => __( 'Editor script handles.' ),
    561561                    'type'        => array( 'array' ),
     
    567567                    'readonly'    => true,
    568568                ),
    569                 'script_handles'        => array(
     569                'script_handles'         => array(
    570570                    'description' => __( 'Public facing and editor script handles.' ),
    571571                    'type'        => array( 'array' ),
     
    577577                    'readonly'    => true,
    578578                ),
    579                 'view_script_handles'   => array(
     579                'view_script_handles'    => array(
    580580                    'description' => __( 'Public facing script handles.' ),
    581581                    'type'        => array( 'array' ),
     
    587587                    'readonly'    => true,
    588588                ),
    589                 'view_script_module_ids'   => array(
     589                'view_script_module_ids' => array(
    590590                    'description' => __( 'Public facing script module IDs.' ),
    591591                    'type'        => array( 'array' ),
     
    597597                    'readonly'    => true,
    598598                ),
    599                 'editor_style_handles'  => array(
     599                'editor_style_handles'   => array(
    600600                    'description' => __( 'Editor style handles.' ),
    601601                    'type'        => array( 'array' ),
     
    607607                    'readonly'    => true,
    608608                ),
    609                 'style_handles'         => array(
     609                'style_handles'          => array(
    610610                    'description' => __( 'Public facing and editor style handles.' ),
    611611                    'type'        => array( 'array' ),
     
    617617                    'readonly'    => true,
    618618                ),
    619                 'view_style_handles'    => array(
     619                'view_style_handles'     => array(
    620620                    'description' => __( 'Public facing style handles.' ),
    621621                    'type'        => array( 'array' ),
     
    627627                    'readonly'    => true,
    628628                ),
    629                 'styles'                => array(
     629                'styles'                 => array(
    630630                    'description' => __( 'Block style variations.' ),
    631631                    'type'        => 'array',
     
    656656                    'readonly'    => true,
    657657                ),
    658                 'variations'            => array(
     658                'variations'             => array(
    659659                    'description' => __( 'Block variations.' ),
    660660                    'type'        => 'array',
     
    708708                    'default'     => null,
    709709                ),
    710                 'textdomain'            => array(
     710                'textdomain'             => array(
    711711                    'description' => __( 'Public text domain.' ),
    712712                    'type'        => array( 'string', 'null' ),
     
    715715                    'readonly'    => true,
    716716                ),
    717                 'parent'                => array(
     717                'parent'                 => array(
    718718                    'description' => __( 'Parent blocks.' ),
    719719                    'type'        => array( 'array', 'null' ),
     
    726726                    'readonly'    => true,
    727727                ),
    728                 'ancestor'              => array(
     728                'ancestor'               => array(
    729729                    'description' => __( 'Ancestor blocks.' ),
    730730                    'type'        => array( 'array', 'null' ),
     
    737737                    'readonly'    => true,
    738738                ),
    739                 'allowed_blocks'        => array(
     739                'allowed_blocks'         => array(
    740740                    'description' => __( 'Allowed child block types.' ),
    741741                    'type'        => array( 'array', 'null' ),
     
    748748                    'readonly'    => true,
    749749                ),
    750                 'keywords'              => $keywords_definition,
    751                 'example'               => $example_definition,
    752                 'block_hooks'           => array(
     750                'keywords'               => $keywords_definition,
     751                'example'                => $example_definition,
     752                'block_hooks'            => array(
    753753                    'description'       => __( 'This block is automatically inserted near any occurrence of the block types used as keys of this map, into a relative position given by the corresponding value.' ),
    754754                    'type'              => 'object',
Note: See TracChangeset for help on using the changeset viewer.