Skip to content

Commit 4e844e7

Browse files
committed
Docs: Add missing documentation for the view_script_module_ids property of WP_Block_Type.
Follow-up to [57565], [65318]. Props westonruter, gziolo. See #65860. git-svn-id: https://develop.svn.wordpress.org/trunk@65401 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 12d0d6d commit 4e844e7

1 file changed

Lines changed: 33 additions & 32 deletions

File tree

‎src/wp-includes/class-wp-block-type.php‎

Lines changed: 33 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ class WP_Block_Type {
309309
* Deprecated the `editor_script`, `script`, `view_script`, `editor_style`, and `style` properties.
310310
* @since 6.3.0 Added the `selectors` property.
311311
* @since 6.4.0 Added the `block_hooks` property.
312-
* @since 6.5.0 Added the `allowed_blocks`, `variation_callback`, and `view_style_handles` properties.
312+
* @since 6.5.0 Added the `allowed_blocks`, `variation_callback`, `view_script_module_ids`, and `view_style_handles` properties.
313313
*
314314
* @see register_block_type()
315315
*
@@ -318,37 +318,38 @@ class WP_Block_Type {
318318
* Optional. Array or string of arguments for registering a block type. Any arguments may be defined,
319319
* however the ones described below are supported by default. Default empty array.
320320
*
321-
* @type string $api_version Block API version.
322-
* @type string $title Human-readable block type label.
323-
* @type string|null $category Block type category classification, used in
324-
* search interfaces to arrange block types by category.
325-
* @type string[]|null $parent Setting parent lets a block require that it is only
326-
* available when nested within the specified blocks.
327-
* @type string[]|null $ancestor Setting ancestor makes a block available only inside the specified
328-
* block types at any position of the ancestor's block subtree.
329-
* @type string[]|null $allowed_blocks Limits which block types can be inserted as children of this block type.
330-
* @type string|null $icon Block type icon.
331-
* @type string $description A detailed block type description.
332-
* @type string[] $keywords Additional keywords to produce block type as
333-
* result in search interfaces.
334-
* @type string|null $textdomain The translation textdomain.
335-
* @type array[] $styles Alternative block styles.
336-
* @type array[] $variations Block variations.
337-
* @type array<string, string|array<string, string>> $selectors Custom CSS selectors for theme.json style generation.
338-
* @type array|null $supports Supported features.
339-
* @type array|null $example Structured data for the block preview.
340-
* @type callable|null $render_callback Block type render callback.
341-
* @type callable|null $variation_callback Block type variations callback.
342-
* @type array|null $attributes Block type attributes property schemas.
343-
* @type string[] $uses_context Context values inherited by blocks of this type.
344-
* @type string[]|null $provides_context Context provided by blocks of this type.
345-
* @type string[] $block_hooks Block hooks.
346-
* @type string[] $editor_script_handles Block type editor only script handles.
347-
* @type string[] $script_handles Block type front end and editor script handles.
348-
* @type string[] $view_script_handles Block type front end only script handles.
349-
* @type string[] $editor_style_handles Block type editor only style handles.
350-
* @type string[] $style_handles Block type front end and editor style handles.
351-
* @type string[] $view_style_handles Block type front end only style handles.
321+
* @type string $api_version Block API version.
322+
* @type string $title Human-readable block type label.
323+
* @type string|null $category Block type category classification, used in
324+
* search interfaces to arrange block types by category.
325+
* @type string[]|null $parent Setting parent lets a block require that it is only
326+
* available when nested within the specified blocks.
327+
* @type string[]|null $ancestor Setting ancestor makes a block available only inside the specified
328+
* block types at any position of the ancestor's block subtree.
329+
* @type string[]|null $allowed_blocks Limits which block types can be inserted as children of this block type.
330+
* @type string|null $icon Block type icon.
331+
* @type string $description A detailed block type description.
332+
* @type string[] $keywords Additional keywords to produce block type as
333+
* result in search interfaces.
334+
* @type string|null $textdomain The translation textdomain.
335+
* @type array[] $styles Alternative block styles.
336+
* @type array[] $variations Block variations.
337+
* @type array<string, string|array<string, string>> $selectors Custom CSS selectors for theme.json style generation.
338+
* @type array|null $supports Supported features.
339+
* @type array|null $example Structured data for the block preview.
340+
* @type callable|null $render_callback Block type render callback.
341+
* @type callable|null $variation_callback Block type variations callback.
342+
* @type array|null $attributes Block type attributes property schemas.
343+
* @type string[] $uses_context Context values inherited by blocks of this type.
344+
* @type string[]|null $provides_context Context provided by blocks of this type.
345+
* @type string[] $block_hooks Block hooks.
346+
* @type string[] $editor_script_handles Block type editor only script handles.
347+
* @type string[] $script_handles Block type front end and editor script handles.
348+
* @type string[] $view_script_handles Block type front end only script handles.
349+
* @type string[] $view_script_module_ids Block type front end only script module IDs.
350+
* @type string[] $editor_style_handles Block type editor only style handles.
351+
* @type string[] $style_handles Block type front end and editor style handles.
352+
* @type string[] $view_style_handles Block type front end only style handles.
352353
* }
353354
*/
354355
public function __construct( $block_type, $args = array() ) {

0 commit comments

Comments
 (0)