diff --git a/src/wp-includes/blocks.php b/src/wp-includes/blocks.php
index 6a1928d20c..0d6ad4bdc8 100644
|
a
|
b
|
|
| 20 | 20 | * ones described below are supported by default. Default empty array. |
| 21 | 21 | * |
| 22 | 22 | * @type callable $render_callback Callback used to render blocks of this block type. |
| | 23 | * @type array $attributes Block attributes mapping, property name to schema. |
| | 24 | * @type string $editor_script Block type editor script handle. |
| | 25 | * @type string $script Block type front end script handle. |
| | 26 | * @type string $editor_style Block type editor style handle. |
| | 27 | * @type string $style Block type front end style handle. |
| 23 | 28 | * } |
| 24 | 29 | * @return WP_Block_Type|false The registered block type on success, or false on failure. |
| 25 | 30 | */ |
diff --git a/src/wp-includes/class-wp-block-type-registry.php b/src/wp-includes/class-wp-block-type-registry.php
index 0cc3e94c18..6f6604426b 100644
|
a
|
b
|
final class WP_Block_Type_Registry { |
| 43 | 43 | * |
| 44 | 44 | * @type callable $render_callback Callback used to render blocks of this block type. |
| 45 | 45 | * @type array $attributes Block attributes mapping, property name to schema. |
| | 46 | * @type string $editor_script Block type editor script handle. |
| | 47 | * @type string $script Block type front end script handle. |
| | 48 | * @type string $editor_style Block type editor style handle. |
| | 49 | * @type string $style Block type front end style handle. |
| 46 | 50 | * } |
| 47 | 51 | * @return WP_Block_Type|false The registered block type on success, or false on failure. |
| 48 | 52 | */ |
diff --git a/src/wp-includes/class-wp-block-type.php b/src/wp-includes/class-wp-block-type.php
index 6ffda95b4e..187166ca73 100644
|
a
|
b
|
class WP_Block_Type { |
| 81 | 81 | * @see register_block_type() |
| 82 | 82 | * |
| 83 | 83 | * @param string $block_type Block type name including namespace. |
| 84 | | * @param array|string $args Optional. Array or string of arguments for registering a block type. |
| 85 | | * Default empty array. |
| | 84 | * @param array $args { |
| | 85 | * Optional. Array of block type arguments. Any arguments may be defined, however the |
| | 86 | * ones described below are supported by default. Default empty array. |
| | 87 | * |
| | 88 | * @type callable $render_callback Callback used to render blocks of this block type. |
| | 89 | * @type array $attributes Block attributes mapping, property name to schema. |
| | 90 | * @type string $editor_script Block type editor script handle. |
| | 91 | * @type string $script Block type front end script handle. |
| | 92 | * @type string $editor_style Block type editor style handle. |
| | 93 | * @type string $style Block type front end style handle. |
| | 94 | * } |
| 86 | 95 | */ |
| 87 | 96 | public function __construct( $block_type, $args = array() ) { |
| 88 | 97 | $this->name = $block_type; |