Coding standards: Apply some changes after `composer format`.

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

See #60233, #60506, #60524.
Built from https://develop.svn.wordpress.org/trunk@57771


git-svn-id: http://core.svn.wordpress.org/trunk@57272 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
desrosj 2024-03-05 06:55:08 +00:00
parent f66211dafc
commit 1562e99f44
3 changed files with 31 additions and 31 deletions

View File

@ -1463,8 +1463,8 @@ function inject_ignored_hooked_blocks_metadata_attributes( $post ) {
wp_update_post( wp_update_post(
array( array(
'ID' => $post->ID, 'ID' => $post->ID,
'post_content' => $content, 'post_content' => $content,
) )
); );
} }

View File

@ -470,21 +470,21 @@ class WP_REST_Block_Types_Controller extends WP_REST_Controller {
'title' => 'block-type', 'title' => 'block-type',
'type' => 'object', 'type' => 'object',
'properties' => array( 'properties' => array(
'api_version' => array( 'api_version' => array(
'description' => __( 'Version of block API.' ), 'description' => __( 'Version of block API.' ),
'type' => 'integer', 'type' => 'integer',
'default' => 1, 'default' => 1,
'context' => array( 'embed', 'view', 'edit' ), 'context' => array( 'embed', 'view', 'edit' ),
'readonly' => true, 'readonly' => true,
), ),
'title' => array( 'title' => array(
'description' => __( 'Title of block type.' ), 'description' => __( 'Title of block type.' ),
'type' => 'string', 'type' => 'string',
'default' => '', 'default' => '',
'context' => array( 'embed', 'view', 'edit' ), 'context' => array( 'embed', 'view', 'edit' ),
'readonly' => true, 'readonly' => true,
), ),
'name' => array( 'name' => array(
'description' => __( 'Unique name identifying the block type.' ), 'description' => __( 'Unique name identifying the block type.' ),
'type' => 'string', 'type' => 'string',
'pattern' => self::NAME_PATTERN, 'pattern' => self::NAME_PATTERN,
@ -492,15 +492,15 @@ class WP_REST_Block_Types_Controller extends WP_REST_Controller {
'context' => array( 'embed', 'view', 'edit' ), 'context' => array( 'embed', 'view', 'edit' ),
'readonly' => true, 'readonly' => true,
), ),
'description' => array( 'description' => array(
'description' => __( 'Description of block type.' ), 'description' => __( 'Description of block type.' ),
'type' => 'string', 'type' => 'string',
'default' => '', 'default' => '',
'context' => array( 'embed', 'view', 'edit' ), 'context' => array( 'embed', 'view', 'edit' ),
'readonly' => true, 'readonly' => true,
), ),
'icon' => $icon_definition, 'icon' => $icon_definition,
'attributes' => array( 'attributes' => array(
'description' => __( 'Block attributes.' ), 'description' => __( 'Block attributes.' ),
'type' => array( 'object', 'null' ), 'type' => array( 'object', 'null' ),
'properties' => array(), 'properties' => array(),
@ -511,7 +511,7 @@ class WP_REST_Block_Types_Controller extends WP_REST_Controller {
'context' => array( 'embed', 'view', 'edit' ), 'context' => array( 'embed', 'view', 'edit' ),
'readonly' => true, 'readonly' => true,
), ),
'provides_context' => array( 'provides_context' => array(
'description' => __( 'Context provided by blocks of this type.' ), 'description' => __( 'Context provided by blocks of this type.' ),
'type' => 'object', 'type' => 'object',
'properties' => array(), 'properties' => array(),
@ -522,7 +522,7 @@ class WP_REST_Block_Types_Controller extends WP_REST_Controller {
'context' => array( 'embed', 'view', 'edit' ), 'context' => array( 'embed', 'view', 'edit' ),
'readonly' => true, 'readonly' => true,
), ),
'uses_context' => array( 'uses_context' => array(
'description' => __( 'Context values inherited by blocks of this type.' ), 'description' => __( 'Context values inherited by blocks of this type.' ),
'type' => 'array', 'type' => 'array',
'default' => array(), 'default' => array(),
@ -532,7 +532,7 @@ class WP_REST_Block_Types_Controller extends WP_REST_Controller {
'context' => array( 'embed', 'view', 'edit' ), 'context' => array( 'embed', 'view', 'edit' ),
'readonly' => true, 'readonly' => true,
), ),
'selectors' => array( 'selectors' => array(
'description' => __( 'Custom CSS selectors.' ), 'description' => __( 'Custom CSS selectors.' ),
'type' => 'object', 'type' => 'object',
'default' => array(), 'default' => array(),
@ -540,7 +540,7 @@ class WP_REST_Block_Types_Controller extends WP_REST_Controller {
'context' => array( 'embed', 'view', 'edit' ), 'context' => array( 'embed', 'view', 'edit' ),
'readonly' => true, 'readonly' => true,
), ),
'supports' => array( 'supports' => array(
'description' => __( 'Block supports.' ), 'description' => __( 'Block supports.' ),
'type' => 'object', 'type' => 'object',
'default' => array(), 'default' => array(),
@ -548,15 +548,15 @@ class WP_REST_Block_Types_Controller extends WP_REST_Controller {
'context' => array( 'embed', 'view', 'edit' ), 'context' => array( 'embed', 'view', 'edit' ),
'readonly' => true, 'readonly' => true,
), ),
'category' => $category_definition, 'category' => $category_definition,
'is_dynamic' => array( 'is_dynamic' => array(
'description' => __( 'Is the block dynamically rendered.' ), 'description' => __( 'Is the block dynamically rendered.' ),
'type' => 'boolean', 'type' => 'boolean',
'default' => false, 'default' => false,
'context' => array( 'embed', 'view', 'edit' ), 'context' => array( 'embed', 'view', 'edit' ),
'readonly' => true, 'readonly' => true,
), ),
'editor_script_handles' => array( 'editor_script_handles' => array(
'description' => __( 'Editor script handles.' ), 'description' => __( 'Editor script handles.' ),
'type' => array( 'array' ), 'type' => array( 'array' ),
'default' => array(), 'default' => array(),
@ -566,7 +566,7 @@ class WP_REST_Block_Types_Controller extends WP_REST_Controller {
'context' => array( 'embed', 'view', 'edit' ), 'context' => array( 'embed', 'view', 'edit' ),
'readonly' => true, 'readonly' => true,
), ),
'script_handles' => array( 'script_handles' => array(
'description' => __( 'Public facing and editor script handles.' ), 'description' => __( 'Public facing and editor script handles.' ),
'type' => array( 'array' ), 'type' => array( 'array' ),
'default' => array(), 'default' => array(),
@ -576,7 +576,7 @@ class WP_REST_Block_Types_Controller extends WP_REST_Controller {
'context' => array( 'embed', 'view', 'edit' ), 'context' => array( 'embed', 'view', 'edit' ),
'readonly' => true, 'readonly' => true,
), ),
'view_script_handles' => array( 'view_script_handles' => array(
'description' => __( 'Public facing script handles.' ), 'description' => __( 'Public facing script handles.' ),
'type' => array( 'array' ), 'type' => array( 'array' ),
'default' => array(), 'default' => array(),
@ -586,7 +586,7 @@ class WP_REST_Block_Types_Controller extends WP_REST_Controller {
'context' => array( 'embed', 'view', 'edit' ), 'context' => array( 'embed', 'view', 'edit' ),
'readonly' => true, 'readonly' => true,
), ),
'view_script_module_ids' => array( 'view_script_module_ids' => array(
'description' => __( 'Public facing script module IDs.' ), 'description' => __( 'Public facing script module IDs.' ),
'type' => array( 'array' ), 'type' => array( 'array' ),
'default' => array(), 'default' => array(),
@ -596,7 +596,7 @@ class WP_REST_Block_Types_Controller extends WP_REST_Controller {
'context' => array( 'embed', 'view', 'edit' ), 'context' => array( 'embed', 'view', 'edit' ),
'readonly' => true, 'readonly' => true,
), ),
'editor_style_handles' => array( 'editor_style_handles' => array(
'description' => __( 'Editor style handles.' ), 'description' => __( 'Editor style handles.' ),
'type' => array( 'array' ), 'type' => array( 'array' ),
'default' => array(), 'default' => array(),
@ -606,7 +606,7 @@ class WP_REST_Block_Types_Controller extends WP_REST_Controller {
'context' => array( 'embed', 'view', 'edit' ), 'context' => array( 'embed', 'view', 'edit' ),
'readonly' => true, 'readonly' => true,
), ),
'style_handles' => array( 'style_handles' => array(
'description' => __( 'Public facing and editor style handles.' ), 'description' => __( 'Public facing and editor style handles.' ),
'type' => array( 'array' ), 'type' => array( 'array' ),
'default' => array(), 'default' => array(),
@ -616,7 +616,7 @@ class WP_REST_Block_Types_Controller extends WP_REST_Controller {
'context' => array( 'embed', 'view', 'edit' ), 'context' => array( 'embed', 'view', 'edit' ),
'readonly' => true, 'readonly' => true,
), ),
'view_style_handles' => array( 'view_style_handles' => array(
'description' => __( 'Public facing style handles.' ), 'description' => __( 'Public facing style handles.' ),
'type' => array( 'array' ), 'type' => array( 'array' ),
'default' => array(), 'default' => array(),
@ -626,7 +626,7 @@ class WP_REST_Block_Types_Controller extends WP_REST_Controller {
'context' => array( 'embed', 'view', 'edit' ), 'context' => array( 'embed', 'view', 'edit' ),
'readonly' => true, 'readonly' => true,
), ),
'styles' => array( 'styles' => array(
'description' => __( 'Block style variations.' ), 'description' => __( 'Block style variations.' ),
'type' => 'array', 'type' => 'array',
'items' => array( 'items' => array(
@ -655,7 +655,7 @@ class WP_REST_Block_Types_Controller extends WP_REST_Controller {
'context' => array( 'embed', 'view', 'edit' ), 'context' => array( 'embed', 'view', 'edit' ),
'readonly' => true, 'readonly' => true,
), ),
'variations' => array( 'variations' => array(
'description' => __( 'Block variations.' ), 'description' => __( 'Block variations.' ),
'type' => 'array', 'type' => 'array',
'items' => array( 'items' => array(
@ -707,14 +707,14 @@ class WP_REST_Block_Types_Controller extends WP_REST_Controller {
'context' => array( 'embed', 'view', 'edit' ), 'context' => array( 'embed', 'view', 'edit' ),
'default' => null, 'default' => null,
), ),
'textdomain' => array( 'textdomain' => array(
'description' => __( 'Public text domain.' ), 'description' => __( 'Public text domain.' ),
'type' => array( 'string', 'null' ), 'type' => array( 'string', 'null' ),
'default' => null, 'default' => null,
'context' => array( 'embed', 'view', 'edit' ), 'context' => array( 'embed', 'view', 'edit' ),
'readonly' => true, 'readonly' => true,
), ),
'parent' => array( 'parent' => array(
'description' => __( 'Parent blocks.' ), 'description' => __( 'Parent blocks.' ),
'type' => array( 'array', 'null' ), 'type' => array( 'array', 'null' ),
'items' => array( 'items' => array(
@ -725,7 +725,7 @@ class WP_REST_Block_Types_Controller extends WP_REST_Controller {
'context' => array( 'embed', 'view', 'edit' ), 'context' => array( 'embed', 'view', 'edit' ),
'readonly' => true, 'readonly' => true,
), ),
'ancestor' => array( 'ancestor' => array(
'description' => __( 'Ancestor blocks.' ), 'description' => __( 'Ancestor blocks.' ),
'type' => array( 'array', 'null' ), 'type' => array( 'array', 'null' ),
'items' => array( 'items' => array(
@ -736,7 +736,7 @@ class WP_REST_Block_Types_Controller extends WP_REST_Controller {
'context' => array( 'embed', 'view', 'edit' ), 'context' => array( 'embed', 'view', 'edit' ),
'readonly' => true, 'readonly' => true,
), ),
'allowed_blocks' => array( 'allowed_blocks' => array(
'description' => __( 'Allowed child block types.' ), 'description' => __( 'Allowed child block types.' ),
'type' => array( 'array', 'null' ), 'type' => array( 'array', 'null' ),
'items' => array( 'items' => array(
@ -747,9 +747,9 @@ class WP_REST_Block_Types_Controller extends WP_REST_Controller {
'context' => array( 'embed', 'view', 'edit' ), 'context' => array( 'embed', 'view', 'edit' ),
'readonly' => true, 'readonly' => true,
), ),
'keywords' => $keywords_definition, 'keywords' => $keywords_definition,
'example' => $example_definition, 'example' => $example_definition,
'block_hooks' => array( 'block_hooks' => array(
'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.' ), '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.' ),
'type' => 'object', 'type' => 'object',
'patternProperties' => array( 'patternProperties' => array(

View File

@ -16,7 +16,7 @@
* *
* @global string $wp_version * @global string $wp_version
*/ */
$wp_version = '6.5-beta3-57770'; $wp_version = '6.5-beta3-57771';
/** /**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema. * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.