wordpress-develop/tests/phpunit/tests/blocks
Greg Ziółkowski 3381f05fa2 Blocks: Allow registering multiple items for all supported asset types
Follow-up #54337, [52069]. Part of https://github.com/WordPress/gutenberg/issues/41236. More details in https://github.com/WordPress/gutenberg/issues/33542.

Allow passing more than one script per block for `editorScript`, `script`, and `viewScript` fields in the `block.json` metadata file. This aligns with the previously added changes for `style` and `editorStyle` fields.

This change impacts the `WP_Block_Type` class and the REST API endpoint for block types. To ensure backward compatibiliy old names were soft deprecated in favor of new fields that work with array values and have `_handles` suffix.

Props zieladam, dlh, timothyblynjacobs, aristath, bernhard-reiter.
Fixes #56408.



git-svn-id: https://develop.svn.wordpress.org/trunk@54155 602fd350-edb4-49c9-b593-d223f7449a82
2022-09-14 10:50:26 +00:00
..
context.php Tests: Correctly use the factory method. 2022-09-06 22:03:10 +00:00
editor.php Tests: Correctly use the factory method. 2022-09-06 22:03:10 +00:00
getBlockTemplates.php Editor: Ensure get_block_templates() returns unique templates or template parts. 2022-08-23 14:50:56 +00:00
register.php Blocks: Allow registering multiple items for all supported asset types 2022-09-14 10:50:26 +00:00
render.php Blocks: Add new render property in block.json for block types 2022-09-12 13:12:21 +00:00
renderCommentTemplate.php Build/Test Tools: Fix comments odd/even instabilities (test leaks). 2022-05-23 11:54:28 +00:00
renderReusable.php Tests: Rename classes in phpunit/tests/blocks/ per the naming conventions. 2021-07-26 18:45:48 +00:00
serialize.php Coding Standards: Add visibility to methods in tests/phpunit/tests/. 2021-11-04 15:22:47 +00:00
supportedStyles.php Coding Standards: Use static closures when not using $this. 2021-08-26 12:57:08 +00:00
wpBlock.php Editor: Register 'lock' attribute for every block on the server 2022-04-26 09:48:20 +00:00
wpBlockList.php Coding Standards: Add visibility to methods in tests/phpunit/tests/. 2021-11-04 15:22:47 +00:00
wpBlockParser.php Tests: Rename classes in phpunit/tests/blocks/ per the naming conventions. 2021-07-26 18:45:48 +00:00
wpBlockType.php Editor: Register 'lock' attribute for every block on the server 2022-04-26 09:48:20 +00:00
wpBlockTypeRegistry.php Build/Test Tools: Implement use of the void solution. 2021-08-07 10:29:41 +00:00